Modifier and Type | Class and Description |
---|---|
static class |
TokenVerifier.AudienceCheck |
static class |
TokenVerifier.IssuedForCheck |
static class |
TokenVerifier.RealmUrlCheck |
static class |
TokenVerifier.TokenTypeCheck |
Modifier and Type | Field and Description |
---|---|
static TokenVerifier.Predicate<JsonWebToken> |
TokenVerifier.IS_ACTIVE
Check for token being neither expired nor used before it gets valid.
|
static TokenVerifier.Predicate<JsonWebToken> |
TokenVerifier.SUBJECT_EXISTS_CHECK |
Modifier and Type | Method and Description |
---|---|
static <T extends JsonWebToken> |
TokenVerifier.alternative(TokenVerifier.Predicate<? super T>... predicates)
Creates a predicate that will proceed with checks of the given predicates
and will pass if and only if at least one of the given predicates passes.
|
static <T extends JsonWebToken> |
TokenVerifier.optional(TokenVerifier.Predicate<T> mandatoryPredicate)
Creates an optional predicate from a predicate that will proceed with check but always pass.
|
Modifier and Type | Method and Description |
---|---|
static <T extends JsonWebToken> |
TokenVerifier.alternative(TokenVerifier.Predicate<? super T>... predicates)
Creates a predicate that will proceed with checks of the given predicates
and will pass if and only if at least one of the given predicates passes.
|
static <T extends JsonWebToken> |
TokenVerifier.optional(TokenVerifier.Predicate<T> mandatoryPredicate)
Creates an optional predicate from a predicate that will proceed with check but always pass.
|
TokenVerifier<T> |
TokenVerifier.withChecks(TokenVerifier.Predicate<? super T>... checks)
Will test the given checks in
TokenVerifier.verify() method in addition to already set checks. |
Modifier and Type | Field and Description |
---|---|
static TokenVerifier.Predicate<DefaultActionTokenKey> |
DefaultActionToken.ACTION_TOKEN_BASIC_CHECKS |
Modifier and Type | Method and Description |
---|---|
static TokenVerifier.Predicate<JsonWebToken> |
TokenUtils.checkThat(BooleanSupplier function,
String errorEvent,
String errorMessage)
Returns a predicate for use in
TokenVerifier using the given boolean-returning function. |
static <T extends JsonWebToken> |
TokenUtils.checkThat(Predicate<T> function,
String errorEvent,
String errorMessage)
Returns a predicate for use in
TokenVerifier using the given boolean-returning function. |
default TokenVerifier.Predicate<? super T>[] |
ActionTokenHandler.getVerifiers(ActionTokenContext<T> tokenContext)
Returns an array of verifiers that are tested prior to handling the token.
|
static <T extends JsonWebToken> |
TokenUtils.onlyIf(Predicate<T> condition,
TokenVerifier.Predicate<T> predicate)
Returns a predicate that is applied only if the given
condition evaluates to . |
static <T extends JsonWebToken> |
TokenUtils.predicates(TokenVerifier.Predicate<? super T>... predicate) |
protected TokenVerifier.Predicate<DefaultActionToken> |
AbstractActionTokenHandler.verifyEmail(ActionTokenContext<? extends DefaultActionToken> context) |
Modifier and Type | Method and Description |
---|---|
static <T extends JsonWebToken> |
TokenUtils.onlyIf(Predicate<T> condition,
TokenVerifier.Predicate<T> predicate)
Returns a predicate that is applied only if the given
condition evaluates to . |
static <T extends JsonWebToken> |
TokenUtils.predicates(TokenVerifier.Predicate<? super T>... predicate) |
Modifier and Type | Method and Description |
---|---|
TokenVerifier.Predicate<? super ExecuteActionsActionToken>[] |
ExecuteActionsActionTokenHandler.getVerifiers(ActionTokenContext<ExecuteActionsActionToken> tokenContext) |
Modifier and Type | Method and Description |
---|---|
TokenVerifier.Predicate<? super IdpVerifyAccountLinkActionToken>[] |
IdpVerifyAccountLinkActionTokenHandler.getVerifiers(ActionTokenContext<IdpVerifyAccountLinkActionToken> tokenContext) |
Modifier and Type | Method and Description |
---|---|
TokenVerifier.Predicate<? super ResetCredentialsActionToken>[] |
ResetCredentialsActionTokenHandler.getVerifiers(ActionTokenContext<ResetCredentialsActionToken> tokenContext) |
Modifier and Type | Method and Description |
---|---|
TokenVerifier.Predicate<? super VerifyEmailActionToken>[] |
VerifyEmailActionTokenHandler.getVerifiers(ActionTokenContext<VerifyEmailActionToken> tokenContext) |
Modifier and Type | Class and Description |
---|---|
static class |
TokenManager.NotBeforeCheck |
Modifier and Type | Method and Description |
---|---|
static AuthenticationManager.AuthResult |
AuthenticationManager.verifyIdentityToken(KeycloakSession session,
RealmModel realm,
javax.ws.rs.core.UriInfo uriInfo,
ClientConnection connection,
boolean checkActive,
boolean checkTokenType,
String checkAudience,
boolean isCookie,
String tokenString,
javax.ws.rs.core.HttpHeaders headers,
TokenVerifier.Predicate<? super AccessToken>... additionalChecks) |
Modifier and Type | Class and Description |
---|---|
static class |
LoginActionsServiceChecks.AuthenticationSessionUserIdMatchesOneFromToken
This check verifies that user ID (subject) from the token matches
the one from the authentication session.
|
static class |
LoginActionsServiceChecks.IsActionRequired
Verifies that if authentication session exists and any action is required according to it, then it is
the expected one.
|
static class |
LoginActionsServiceChecks.IsRedirectValid
Verifies whether the given redirect URL, when set, is valid for the given client.
|
Copyright © 2021 JBoss by Red Hat. All rights reserved.