Class LoginActionsServiceChecks.IsActionRequired

  • All Implemented Interfaces:
    org.keycloak.TokenVerifier.Predicate<org.keycloak.representations.JsonWebToken>
    Enclosing class:
    LoginActionsServiceChecks

    public static class LoginActionsServiceChecks.IsActionRequired
    extends Object
    implements org.keycloak.TokenVerifier.Predicate<org.keycloak.representations.JsonWebToken>
    Verifies that if authentication session exists and any action is required according to it, then it is the expected one. If there is an action required in the session, furthermore it is not the expected one, and the required action is redirection to "required actions", it throws with response performing the redirect to required actions.
    • Constructor Detail

      • IsActionRequired

        public IsActionRequired​(ActionTokenContext<?> context,
                                org.keycloak.sessions.CommonClientSessionModel.Action expectedAction)
    • Method Detail

      • test

        public boolean test​(org.keycloak.representations.JsonWebToken t)
                     throws org.keycloak.common.VerificationException
        Specified by:
        test in interface org.keycloak.TokenVerifier.Predicate<org.keycloak.representations.JsonWebToken>
        Throws:
        org.keycloak.common.VerificationException