Class OAuth2Token
- java.lang.Object
-
- net.webpdf.wsclient.session.auth.material.token.OAuth2Token
-
- All Implemented Interfaces:
AuthMaterial,JWTToken
public class OAuth2Token extends Object implements JWTToken
An instance of
OAuth2Tokenwraps the access token of a webPDFSessionin an object.Such a Token can only be obtained and refreshed, by a valid external authorization provider and can not be acquired via the webPDF server.
Important: Make sure, that the token belongs to an authorization provider known to the webPDF server.
-
-
Constructor Summary
Constructors Constructor Description OAuth2Token(@NotNull String accessToken)Creates a newOAuth2Tokenfor the access token determined by an OAuth provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull StringgetToken()Returns the access tokenStringvalue.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.webpdf.wsclient.session.auth.material.AuthMaterial
getAuthHeader
-
Methods inherited from interface net.webpdf.wsclient.session.auth.material.token.JWTToken
getCredentials, getRawAuthHeader
-
-
-
-
Constructor Detail
-
OAuth2Token
public OAuth2Token(@NotNull @NotNull String accessToken)Creates a newOAuth2Tokenfor the access token determined by an OAuth provider.- Parameters:
accessToken- The access tokenStringvalue.
-
-
Method Detail
-
getToken
@NotNull public @NotNull String getToken()
Returns the access tokenStringvalue.- Specified by:
getTokenin interfaceAuthMaterial- Specified by:
getTokenin interfaceJWTToken- Returns:
- The access token
Stringvalue.
-
-