public class AuthTokenBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
AuthTokenBuilder.FluentHelperBuild
Fluent helper to chain operations.
|
static class |
AuthTokenBuilder.FluentHelperRefreshToken
Fluent helper to chain operations.
|
static class |
AuthTokenBuilder.FluentHelperUnsignedJwt |
Constructor and Description |
---|
AuthTokenBuilder() |
Modifier and Type | Method and Description |
---|---|
AuthTokenBuilder.FluentHelperBuild |
decodedJwt(com.auth0.jwt.interfaces.DecodedJWT decodedJwt)
Use a
DecodedJWT for constructing the AuthToken . |
AuthTokenBuilder.FluentHelperRefreshToken |
encodedJwt(String encodedJwt)
Use an encoded JWT for constructing the
AuthToken . |
AuthTokenBuilder.FluentHelperUnsignedJwt |
unsignedJwt()
Use an non-validated, unsigned JWT for constructing the
AuthToken . |
@Nonnull public AuthTokenBuilder.FluentHelperBuild decodedJwt(@Nonnull com.auth0.jwt.interfaces.DecodedJWT decodedJwt)
DecodedJWT
for constructing the AuthToken
.decodedJwt
- The decoded JWT. The given value will be used without any validation.@Nonnull public AuthTokenBuilder.FluentHelperRefreshToken encodedJwt(@Nonnull String encodedJwt)
AuthToken
.encodedJwt
- The encoded JWT. The given value will be validated and decoded.@Nonnull public AuthTokenBuilder.FluentHelperUnsignedJwt unsignedJwt()
AuthToken
. This artificial JWT can be used in the
execute
methods of AuthTokenAccessor
.Copyright © 2021 SAP SE. All rights reserved.