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
Constructors Constructor Description NotBeforeCheck(int notBefore)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
test
public boolean test(JsonWebToken t) throws VerificationException
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
public static TokenManager.NotBeforeCheck forModel(ClientModel clientModel)
-
forModel
public static TokenManager.NotBeforeCheck forModel(RealmModel realmModel)
-
forModel
public static TokenManager.NotBeforeCheck forModel(KeycloakSession session, RealmModel realmModel, UserModel userModel)
-
-