|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sshd.server.auth.gss.GSSAuthenticator
public class GSSAuthenticator
Class providing basic GSS authentication services. Can be used as-is, but is often extended to provide environment specific implementations.
| Constructor Summary | |
|---|---|
GSSAuthenticator()
|
|
| Method Summary | |
|---|---|
org.ietf.jgss.GSSCredential |
getGSSCredential(org.ietf.jgss.GSSManager mgr)
Overridable method to get GSS accept credential suitable for the current environment. |
org.ietf.jgss.GSSManager |
getGSSManager()
Overridable method to get GSS manager suitable for current environment. |
void |
setKeytabFile(java.lang.String keytabFile)
Set the location of the Kerberos keytab. |
void |
setServicePrincipalName(java.lang.String servicePrincipalName)
Set the service principal name to be used. |
boolean |
validateIdentity(ServerSession session,
java.lang.String identity)
Validate the source identity obtained from the context after negotiation is complete. |
boolean |
validateInitialUser(ServerSession session,
java.lang.String user)
Validate the user name passed in the initial SSH_MSG_USERAUTH_REQUEST message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GSSAuthenticator()
| Method Detail |
|---|
public org.ietf.jgss.GSSManager getGSSManager()
public org.ietf.jgss.GSSCredential getGSSCredential(org.ietf.jgss.GSSManager mgr)
throws java.net.UnknownHostException,
javax.security.auth.login.LoginException,
org.ietf.jgss.GSSException
mgr - The GSS manager
null gssapi authentication fails immediately
java.net.UnknownHostException - If the local host name could not be determined
javax.security.auth.login.LoginException - If the subject could not be found
org.ietf.jgss.GSSException - If the credential could not be obtained
public boolean validateInitialUser(ServerSession session,
java.lang.String user)
session - The current sessionuser - The user name from the initial request
true if the user is valid, false if invalid
public boolean validateIdentity(ServerSession session,
java.lang.String identity)
session - The current sessionidentity - The identity from the GSS context
true if the identity is valid, false if invalidpublic void setServicePrincipalName(java.lang.String servicePrincipalName)
servicePrincipalName - The principal namepublic void setKeytabFile(java.lang.String keytabFile)
keytabFile - The location of the keytab
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||