Class StaticPublickeyAuthenticator

    • Field Detail

      • acceptance

        private final boolean acceptance
    • Constructor Detail

      • StaticPublickeyAuthenticator

        protected StaticPublickeyAuthenticator​(boolean acceptance)
    • Method Detail

      • isAccepted

        public final boolean isAccepted()
      • authenticate

        public final boolean authenticate​(java.lang.String username,
                                          java.security.PublicKey key,
                                          ServerSession session)
        Description copied from interface: PublickeyAuthenticator
        Check the validity of a public key.
        Specified by:
        authenticate in interface PublickeyAuthenticator
        Parameters:
        username - the username
        key - the key
        session - the server session
        Returns:
        a boolean indicating if authentication succeeded or not
      • handleAcceptance

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

        protected void handleRejection​(java.lang.String username,
                                       java.security.PublicKey key,
                                       ServerSession session)