public class KarafJaasAuthenticator extends Object implements org.apache.sshd.server.PasswordAuthenticator, org.apache.sshd.server.PublickeyAuthenticator
| Modifier and Type | Field and Description |
|---|---|
static org.apache.sshd.common.Session.AttributeKey<Subject> |
SUBJECT_ATTRIBUTE_KEY |
| Constructor and Description |
|---|
KarafJaasAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
PublicKey key,
org.apache.sshd.server.session.ServerSession session) |
boolean |
authenticate(String username,
String password,
org.apache.sshd.server.session.ServerSession session) |
String |
getRealm() |
String |
getRole() |
void |
setRealm(String realm) |
void |
setRole(String role) |
public static final org.apache.sshd.common.Session.AttributeKey<Subject> SUBJECT_ATTRIBUTE_KEY
public String getRealm()
public void setRealm(String realm)
public String getRole()
public void setRole(String role)
public boolean authenticate(String username, String password, org.apache.sshd.server.session.ServerSession session)
authenticate in interface org.apache.sshd.server.PasswordAuthenticatorCopyright © 2007-2016 FuseSource, Corp.. All Rights Reserved.