public static class KMSClientProvider.KMSTokenRenewer extends TokenRenewer
TokenRenewer
.Constructor and Description |
---|
KMSClientProvider.KMSTokenRenewer() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(Token<?> token,
Configuration conf)
Cancel the given token
|
boolean |
handleKind(Text kind)
Does this renewer handle this kind of token?
|
boolean |
isManaged(Token<?> token)
Is the given token managed? Only managed tokens may be renewed or
cancelled.
|
long |
renew(Token<?> token,
Configuration conf)
Renew the given token.
|
public boolean handleKind(Text kind)
TokenRenewer
handleKind
in class TokenRenewer
kind
- the kind of the tokenpublic boolean isManaged(Token<?> token) throws IOException
TokenRenewer
isManaged
in class TokenRenewer
token
- the token being checkedIOException
public long renew(Token<?> token, Configuration conf) throws IOException
TokenRenewer
renew
in class TokenRenewer
IOException
public void cancel(Token<?> token, Configuration conf) throws IOException
TokenRenewer
cancel
in class TokenRenewer
IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.