Interface TokenIdentity
-
- All Superinterfaces:
Identity
@ThreadSafe public interface TokenIdentity extends Identity
Provides token which is used to securely authorize requests to services that use token based auth, e.g., OAuth.For more details on OAuth tokens, see: https://oauth.net/2/access-tokens
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static TokenIdentitycreate(String token)Constructs a new token object, which can be used to authorize requests to services that use token based authStringtoken()Retrieves string field representing the literal token string.-
Methods inherited from interface software.amazon.awssdk.identity.spi.Identity
expirationTime, providerName
-
-
-
-
Method Detail
-
token
String token()
Retrieves string field representing the literal token string.
-
create
static TokenIdentity create(String token)
Constructs a new token object, which can be used to authorize requests to services that use token based auth- Parameters:
token- The token used to authorize requests.
-
-