Class StaticPasswordAuthenticator

    • Field Detail

      • acceptance

        private final boolean acceptance
    • Constructor Detail

      • StaticPasswordAuthenticator

        public StaticPasswordAuthenticator​(boolean acceptance)
    • Method Detail

      • isAccepted

        public final boolean isAccepted()
      • authenticate

        public final boolean authenticate​(java.lang.String username,
                                          java.lang.String password,
                                          ServerSession session)
        Description copied from interface: PasswordAuthenticator
        Check the validity of a password.
        Specified by:
        authenticate in interface PasswordAuthenticator
        Parameters:
        username - The username credential
        password - The provided password
        session - The ServerSession attempting the authentication
        Returns:
        true indicating if authentication succeeded
      • handleAcceptance

        protected void handleAcceptance​(java.lang.String username,
                                        java.lang.String password,
                                        ServerSession session)
      • handleRejection

        protected void handleRejection​(java.lang.String username,
                                       java.lang.String password,
                                       ServerSession session)