Uses of Interface
org.keycloak.TokenVerifier.Predicate
Package
Description
-
Uses of TokenVerifier.Predicate in org.keycloak
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
Modifier and TypeFieldDescriptionstatic final TokenVerifier.Predicate<JsonWebToken>
TokenVerifier.IS_ACTIVE
Check for token being neither expired nor used before it gets valid.static final TokenVerifier.Predicate<JsonWebToken>
TokenVerifier.SUBJECT_EXISTS_CHECK
Modifier and TypeMethodDescriptionstatic <T extends JsonWebToken>
TokenVerifier.Predicate<T>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.Predicate<T>TokenVerifier.optional
(TokenVerifier.Predicate<T> mandatoryPredicate) Creates an optional predicate from a predicate that will proceed with check but always pass.Modifier and TypeMethodDescriptionstatic <T extends JsonWebToken>
TokenVerifier.Predicate<T>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.Predicate<T>TokenVerifier.optional
(TokenVerifier.Predicate<T> mandatoryPredicate) Creates an optional predicate from a predicate that will proceed with check but always pass.final TokenVerifier<T>
TokenVerifier.withChecks
(TokenVerifier.Predicate<? super T>... checks) Will test the given checks inTokenVerifier.verify()
method in addition to already set checks. -
Uses of TokenVerifier.Predicate in org.keycloak.authentication.actiontoken
Modifier and TypeFieldDescriptionstatic final TokenVerifier.Predicate<DefaultActionTokenKey>
DefaultActionToken.ACTION_TOKEN_BASIC_CHECKS
Modifier and TypeMethodDescriptionstatic TokenVerifier.Predicate<JsonWebToken>
TokenUtils.checkThat
(BooleanSupplier function, String errorEvent, String errorMessage) Returns a predicate for use inTokenVerifier
using the given boolean-returning function.static <T extends JsonWebToken>
TokenVerifier.Predicate<T>Returns a predicate for use inTokenVerifier
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>
TokenVerifier.Predicate<T>TokenUtils.onlyIf
(Predicate<T> condition, TokenVerifier.Predicate<T> predicate) Returns a predicate that is applied only if the givencondition
evaluates to .static <T extends JsonWebToken>
TokenVerifier.Predicate<? super T>[]TokenUtils.predicates
(TokenVerifier.Predicate<? super T>... predicate) protected TokenVerifier.Predicate<DefaultActionToken>
AbstractActionTokenHandler.verifyEmail
(ActionTokenContext<? extends DefaultActionToken> context) Modifier and TypeMethodDescriptionstatic <T extends JsonWebToken>
TokenVerifier.Predicate<T>TokenUtils.onlyIf
(Predicate<T> condition, TokenVerifier.Predicate<T> predicate) Returns a predicate that is applied only if the givencondition
evaluates to .static <T extends JsonWebToken>
TokenVerifier.Predicate<? super T>[]TokenUtils.predicates
(TokenVerifier.Predicate<? super T>... predicate) -
Uses of TokenVerifier.Predicate in org.keycloak.authentication.actiontoken.execactions
Modifier and TypeMethodDescriptionTokenVerifier.Predicate<? super ExecuteActionsActionToken>[]
ExecuteActionsActionTokenHandler.getVerifiers
(ActionTokenContext<ExecuteActionsActionToken> tokenContext) protected TokenVerifier.Predicate<ExecuteActionsActionToken>
ExecuteActionsActionTokenHandler.verifyRequiredActions
(ActionTokenContext<ExecuteActionsActionToken> tokenContext) -
Uses of TokenVerifier.Predicate in org.keycloak.authentication.actiontoken.idpverifyemail
Modifier and TypeMethodDescriptionIdpVerifyAccountLinkActionTokenHandler.getVerifiers
(ActionTokenContext<IdpVerifyAccountLinkActionToken> tokenContext) -
Uses of TokenVerifier.Predicate in org.keycloak.authentication.actiontoken.resetcred
Modifier and TypeMethodDescriptionResetCredentialsActionTokenHandler.getVerifiers
(ActionTokenContext<ResetCredentialsActionToken> tokenContext) -
Uses of TokenVerifier.Predicate in org.keycloak.authentication.actiontoken.updateemail
Modifier and TypeMethodDescriptionTokenVerifier.Predicate<? super UpdateEmailActionToken>[]
UpdateEmailActionTokenHandler.getVerifiers
(ActionTokenContext<UpdateEmailActionToken> tokenContext) -
Uses of TokenVerifier.Predicate in org.keycloak.authentication.actiontoken.verifyemail
Modifier and TypeMethodDescriptionTokenVerifier.Predicate<? super VerifyEmailActionToken>[]
VerifyEmailActionTokenHandler.getVerifiers
(ActionTokenContext<VerifyEmailActionToken> tokenContext) -
Uses of TokenVerifier.Predicate in org.keycloak.protocol.oidc
Modifier and TypeClassDescriptionstatic class
static class
Check if access token was revoked with OAuth revocation endpoint -
Uses of TokenVerifier.Predicate in org.keycloak.services.managers
Modifier and TypeMethodDescriptionAuthenticationManager.verifyIdentityToken
(KeycloakSession session, RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection, boolean checkActive, boolean checkTokenType, String checkAudience, boolean isCookie, String tokenString, jakarta.ws.rs.core.HttpHeaders headers, TokenVerifier.Predicate<? super AccessToken>... additionalChecks) -
Uses of TokenVerifier.Predicate in org.keycloak.services.resources
Modifier and TypeClassDescriptionstatic class
This check verifies that user ID (subject) from the token matches the one from the authentication session.static class
Verifies that if authentication session exists and any action is required according to it, then it is the expected one.static class
Verifies whether the given redirect URL, when set, is valid for the given client.