Package org.keycloak.services.resources
Class LoginActionsServiceChecks.AuthenticationSessionUserIdMatchesOneFromToken
- java.lang.Object
- 
- org.keycloak.services.resources.LoginActionsServiceChecks.AuthenticationSessionUserIdMatchesOneFromToken
 
- 
- All Implemented Interfaces:
- TokenVerifier.Predicate<JsonWebToken>
 - Enclosing class:
- LoginActionsServiceChecks
 
 public static class LoginActionsServiceChecks.AuthenticationSessionUserIdMatchesOneFromToken extends Object implements TokenVerifier.Predicate<JsonWebToken> This check verifies that user ID (subject) from the token matches the one from the authentication session.
- 
- 
Constructor SummaryConstructors Constructor Description AuthenticationSessionUserIdMatchesOneFromToken(ActionTokenContext<?> context)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleantest(JsonWebToken t)Performs a single check on the given token verifier.
 
- 
- 
- 
Constructor Detail- 
AuthenticationSessionUserIdMatchesOneFromTokenpublic AuthenticationSessionUserIdMatchesOneFromToken(ActionTokenContext<?> context) 
 
- 
 - 
Method Detail- 
testpublic boolean test(JsonWebToken t) throws VerificationException Description copied from interface:TokenVerifier.PredicatePerforms a single check on the given token verifier.- Specified by:
- testin interface- TokenVerifier.Predicate<JsonWebToken>
- Parameters:
- t- Token, guaranteed to be non-null.
- Returns:
- Throws:
- VerificationException
 
 
- 
 
-