Class AbstractPKA

  • All Implemented Interfaces:
    org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator
    Direct Known Subclasses:
    AuthorizedKeysFileBasedPKA

    public abstract class AbstractPKA
    extends java.lang.Object
    implements org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractPKA()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean authenticate​(java.lang.String username, java.security.PublicKey key, org.apache.sshd.server.session.ServerSession session)  
      protected abstract java.lang.String getUsername()  
      protected abstract java.util.List<java.security.PublicKey> parseAuthorizedKeys()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • authenticate

        public boolean authenticate​(java.lang.String username,
                                    java.security.PublicKey key,
                                    org.apache.sshd.server.session.ServerSession session)
        Specified by:
        authenticate in interface org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator
      • parseAuthorizedKeys

        protected abstract java.util.List<java.security.PublicKey> parseAuthorizedKeys()
                                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getUsername

        protected abstract java.lang.String getUsername()