Class OAuth2AccessTokenPrincipal
java.lang.Object
net.shibboleth.idp.plugin.authn.oidc.rp.principal.OAuth2AccessTokenPrincipal
- All Implemented Interfaces:
Cloneable,Principal,CloneablePrincipal
Principal based on an OAuth 2.0 access token.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOAuth2AccessTokenPrincipal(String token, String tokenType, Duration expiresInDuration) Constructor. -
Method Summary
-
Field Details
-
accessToken
The access_token. -
accessTokenType
The token_type. -
expiresIn
The duration in seconds when the access token expires.
-
-
Constructor Details
-
OAuth2AccessTokenPrincipal
public OAuth2AccessTokenPrincipal(@Nonnull @NotEmpty @ParameterName(name="accessToken") String token, @Nonnull @NotEmpty @ParameterName(name="accessToken") String tokenType, @Nullable @ParameterName(name="expiresIn") Duration expiresInDuration) Constructor.- Parameters:
token- the access_tokentokenType- the token_typeexpiresInDuration- the expires_in in seconds since the response was generated
-
-
Method Details
-
getName
-
getAccessTokenType
Get the token_type.- Returns:
- the token_type
-
getExpiresIn
Get the number of seconds since the response was generated the access_token expires.- Returns:
- the expires_in
-
hashCode
public int hashCode() -
equals
-
toString
-
clone
- Specified by:
clonein interfaceCloneablePrincipal- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-