Class KarafJaasAuthenticator

  • All Implemented Interfaces:
    org.apache.sshd.server.auth.password.PasswordAuthenticator, org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator

    public class KarafJaasAuthenticator
    extends Object
    implements org.apache.sshd.server.auth.password.PasswordAuthenticator, org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator
    • Field Detail

      • SUBJECT_ATTRIBUTE_KEY

        public static final org.apache.sshd.common.AttributeRepository.AttributeKey<Subject> SUBJECT_ATTRIBUTE_KEY
    • Constructor Detail

      • KarafJaasAuthenticator

        public KarafJaasAuthenticator​(String realm,
                                      String role,
                                      Class<?>[] roleClasses)
    • Method Detail

      • authenticate

        public boolean authenticate​(String username,
                                    String password,
                                    org.apache.sshd.server.session.ServerSession session)
        Specified by:
        authenticate in interface org.apache.sshd.server.auth.password.PasswordAuthenticator
      • authenticate

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