Class MemoryRealm.DefaultVerifier

  • All Implemented Interfaces:
    Verifier
    Enclosing class:
    MemoryRealm

    private class MemoryRealm.DefaultVerifier
    extends SecretVerifier
    Verifier based on the default security model. It looks up users in the mapped organizations.
    • Constructor Detail

      • DefaultVerifier

        private DefaultVerifier()
    • Method Detail

      • createUser

        protected User createUser​(java.lang.String identifier,
                                  Request request,
                                  Response response)
        Description copied from class: SecretVerifier
        Called back to create a new user when valid credentials are provided.
        Overrides:
        createUser in class SecretVerifier
        Parameters:
        identifier - The user identifier.
        request - The request handled.
        response - The response handled.
        Returns:
        The User instance created.
      • verify

        public int verify​(java.lang.String identifier,
                          char[] secret)
        Description copied from class: SecretVerifier
        Verifies that the identifier/secret couple is valid. It throws an IllegalArgumentException in case the identifier is either null or does not identify a user.
        Specified by:
        verify in class SecretVerifier
        Parameters:
        identifier - The user identifier to match.
        secret - The provided secret to verify.
        Returns:
        Result of the verification based on the RESULT_* constants.