Interface JWTToken
-
- All Superinterfaces:
AuthMaterial
- All Known Implementing Classes:
OAuth2Token,SessionToken
public interface JWTToken extends AuthMaterial
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @Nullable org.apache.hc.client5.http.auth.CredentialsgetCredentials()default @Nullable StringgetRawAuthHeader()@NotNull StringgetToken()Returns the access tokenStringvalue.-
Methods inherited from interface net.webpdf.wsclient.session.auth.material.AuthMaterial
getAuthHeader
-
-
-
-
Method Detail
-
getToken
@NotNull @NotNull String getToken()
Returns the access tokenStringvalue.- Specified by:
getTokenin interfaceAuthMaterial- Returns:
- The access token
Stringvalue.
-
getCredentials
@Nullable default @Nullable org.apache.hc.client5.http.auth.Credentials getCredentials()
Provides
Credentialsfor the authentication of aSession.
This may validly returnnullfor anonymousSessions, or in case an authentication is superfluous, because some other means are used to authorize theSession.- Specified by:
getCredentialsin interfaceAuthMaterial- Returns:
Credentialsfor the authentication of aSession.
-
getRawAuthHeader
@Nullable default @Nullable String getRawAuthHeader()
- Specified by:
getRawAuthHeaderin interfaceAuthMaterial- Returns:
- The
Stringvalue of an authorization header, that shall be used by aSession.
-
-