org.apache.karaf.shell.ssh
Class KarafJaasPasswordAuthenticator

java.lang.Object
  extended by org.apache.karaf.shell.ssh.KarafJaasPasswordAuthenticator
All Implemented Interfaces:
org.apache.sshd.server.PasswordAuthenticator

public class KarafJaasPasswordAuthenticator
extends java.lang.Object
implements org.apache.sshd.server.PasswordAuthenticator

TODO Add javadoc

Author:
Apache MINA SSHD Project

Field Summary
static org.apache.sshd.common.Session.AttributeKey<javax.security.auth.Subject> SUBJECT_ATTRIBUTE_KEY
           
 
Constructor Summary
KarafJaasPasswordAuthenticator()
           
 
Method Summary
 boolean authenticate(java.lang.String username, java.lang.String password, org.apache.sshd.server.session.ServerSession session)
           
 java.lang.String getRealm()
           
 java.lang.String getRole()
           
 void setRealm(java.lang.String realm)
           
 void setRole(java.lang.String role)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBJECT_ATTRIBUTE_KEY

public static final org.apache.sshd.common.Session.AttributeKey<javax.security.auth.Subject> SUBJECT_ATTRIBUTE_KEY
Constructor Detail

KarafJaasPasswordAuthenticator

public KarafJaasPasswordAuthenticator()
Method Detail

getRealm

public java.lang.String getRealm()

setRealm

public void setRealm(java.lang.String realm)

getRole

public java.lang.String getRole()

setRole

public void setRole(java.lang.String role)

authenticate

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


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.