public class SecurityTokenAdapter extends Object
Constructor and Description |
---|
SecurityTokenAdapter(String securityToken,
SessionKeySupplier sessionKeySupplier) |
Modifier and Type | Method and Description |
---|---|
String |
getSecurityToken() |
String |
getStringClaim(String key)
Return a claim from the token
|
Duration |
getTokenValidDuration()
Get the duration the token is valid, from issue time to expiration time.
|
boolean |
isValid()
Checks to see if the current token is still valid
|
public SecurityTokenAdapter(String securityToken, SessionKeySupplier sessionKeySupplier)
public boolean isValid()
Checks to see if the current token is still valid
public Duration getTokenValidDuration()
Get the duration the token is valid, from issue time to expiration time.
public String getSecurityToken()
Copyright © 2016–2024. All rights reserved.