Package com.oracle.bmc.auth.internal
Class SecurityTokenAdapter
- java.lang.Object
- 
- com.oracle.bmc.auth.internal.SecurityTokenAdapter
 
- 
 public class SecurityTokenAdapter extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description SecurityTokenAdapter(String securityToken, SessionKeySupplier sessionKeySupplier)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSecurityToken()StringgetStringClaim(String key)Return a claim from the tokenDurationgetTokenValidDuration()Get the duration the token is valid, from issue time to expiration time.booleanisValid()Checks to see if the current token is still valid
 
- 
- 
- 
Constructor Detail- 
SecurityTokenAdapterpublic SecurityTokenAdapter(String securityToken, SessionKeySupplier sessionKeySupplier) 
 
- 
 - 
Method Detail- 
isValidpublic boolean isValid() Checks to see if the current token is still valid- Returns:
- true if valid
 
 - 
getTokenValidDurationpublic Duration getTokenValidDuration() Get the duration the token is valid, from issue time to expiration time.- Returns:
- token validity duration
 
 - 
getSecurityTokenpublic String getSecurityToken() 
 
- 
 
-