Package com.oracle.bmc.auth.internal
Class SecurityTokenAdapter
- java.lang.Object
-
- com.oracle.bmc.auth.internal.SecurityTokenAdapter
-
public class SecurityTokenAdapter extends Object
-
-
Constructor Summary
Constructors Constructor Description SecurityTokenAdapter(String securityToken, SessionKeySupplier sessionKeySupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSecurityToken()
String
getStringClaim(String key)
Return a claim from the tokenDuration
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
-
-
-
Constructor Detail
-
SecurityTokenAdapter
public SecurityTokenAdapter(String securityToken, SessionKeySupplier sessionKeySupplier)
-
-
Method Detail
-
isValid
public boolean isValid()
Checks to see if the current token is still valid- Returns:
- true if valid
-
getTokenValidDuration
public Duration getTokenValidDuration()
Get the duration the token is valid, from issue time to expiration time.- Returns:
- token validity duration
-
getSecurityToken
public String getSecurityToken()
-
-