Package org.keycloak.protocol.oidc
Class TokenManager.NotBeforeCheck
java.lang.Object
org.keycloak.protocol.oidc.TokenManager.NotBeforeCheck
- All Implemented Interfaces:
TokenVerifier.Predicate<JsonWebToken>
- Enclosing class:
- TokenManager
public static class TokenManager.NotBeforeCheck
extends Object
implements TokenVerifier.Predicate<JsonWebToken>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TokenManager.NotBeforeCheck
forModel
(ClientModel clientModel) static TokenManager.NotBeforeCheck
forModel
(KeycloakSession session, RealmModel realmModel, UserModel userModel) static TokenManager.NotBeforeCheck
forModel
(RealmModel realmModel) boolean
test
(JsonWebToken t) Performs a single check on the given token verifier.
-
Constructor Details
-
NotBeforeCheck
public NotBeforeCheck(int notBefore)
-
-
Method Details
-
test
Description copied from interface:TokenVerifier.Predicate
Performs a single check on the given token verifier.- Specified by:
test
in interfaceTokenVerifier.Predicate<JsonWebToken>
- Parameters:
t
- Token, guaranteed to be non-null.- Returns:
- Throws:
VerificationException
-
forModel
-
forModel
-
forModel
public static TokenManager.NotBeforeCheck forModel(KeycloakSession session, RealmModel realmModel, UserModel userModel)
-