Package org.apache.hadoop.crypto.key.kms
Class KMSClientProvider.KMSTokenRenewer
java.lang.Object
org.apache.hadoop.security.token.TokenRenewer
org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSTokenRenewer
- Enclosing class:
- KMSClientProvider
The KMS implementation of
TokenRenewer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel(Token<?> token, Configuration conf) Cancel the given token.booleanhandleKind(Text kind) Does this renewer handle this kind of token?booleanIs the given token managed?longrenew(Token<?> token, Configuration conf) Renew the given token.
-
Constructor Details
-
KMSTokenRenewer
public KMSTokenRenewer()
-
-
Method Details
-
handleKind
Description copied from class:TokenRenewerDoes this renewer handle this kind of token?- Specified by:
handleKindin classTokenRenewer- Parameters:
kind- the kind of the token- Returns:
- true if this renewer can renew it
-
isManaged
Description copied from class:TokenRenewerIs the given token managed? Only managed tokens may be renewed or cancelled.- Specified by:
isManagedin classTokenRenewer- Parameters:
token- the token being checked- Returns:
- true if the token may be renewed or cancelled
- Throws:
IOException- raised on errors performing I/O.
-
renew
Description copied from class:TokenRenewerRenew the given token.- Specified by:
renewin classTokenRenewer- Parameters:
token- the token being checked.conf- configuration.- Returns:
- the new expiration time.
- Throws:
IOException- raised on errors performing I/O.
-
cancel
Description copied from class:TokenRenewerCancel the given token.- Specified by:
cancelin classTokenRenewer- Parameters:
token- the token being checked.conf- configuration.- Throws:
IOException- raised on errors performing I/O.
-