Class UserAuthPublicKey

    • Constructor Detail

      • UserAuthPublicKey

        public UserAuthPublicKey()
    • Method Detail

      • doAuth

        public java.lang.Boolean doAuth​(Buffer buffer,
                                        boolean init)
                                 throws java.lang.Exception
        Specified by:
        doAuth in class AbstractUserAuth
        Throws:
        java.lang.Exception
      • verifySignature

        protected boolean verifySignature​(ServerSession session,
                                          java.lang.String username,
                                          java.lang.String alg,
                                          java.security.PublicKey key,
                                          Buffer buffer,
                                          Signature verifier,
                                          byte[] sig)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • sendPublicKeyResponse

        protected void sendPublicKeyResponse​(ServerSession session,
                                             java.lang.String username,
                                             java.lang.String alg,
                                             java.security.PublicKey key,
                                             byte[] keyBlob,
                                             int offset,
                                             int blobLen,
                                             Buffer buffer)
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception