| Package | Description |
|---|---|
| org.apache.knox.gateway.services.security.token |
| Modifier and Type | Method and Description |
|---|---|
long |
TokenStateService.getTokenExpiration(JWT token)
Get the token expiration.
|
long |
TokenStateService.getTokenExpiration(String tokenId)
Get the token expiration.
|
long |
TokenStateService.getTokenExpiration(String tokenId,
boolean validate)
Get the expiration for the specified token, optionally validating the token prior to accessing its expiration.
|
long |
TokenStateService.getTokenIssueTime(String tokenId) |
TokenMetadata |
TokenStateService.getTokenMetadata(String tokenId) |
boolean |
TokenStateService.isExpired(JWTToken token)
Checks if the token is expired.
|
long |
TokenStateService.renewToken(JWTToken token)
Extend the lifetime of the specified token by the default amount of time.
|
long |
TokenStateService.renewToken(JWTToken token,
long renewInterval)
Extend the lifetime of the specified token by the specified amount of time.
|
long |
TokenStateService.renewToken(String tokenId)
Extend the lifetime of the specified token by the default amount of time.
|
long |
TokenStateService.renewToken(String tokenId,
long renewInterval)
Extend the lifetime of the specified token by the specified amount of time.
|
void |
TokenStateService.revokeToken(JWTToken token)
Disable any subsequent use of the specified token.
|
void |
TokenStateService.revokeToken(String tokenId)
Disable any subsequent use of the specified token.
|
Copyright © 2022 The Apache Software Foundation. All rights reserved.