|
||||||||||
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 | |
---|---|
GSSCredential |
getGSSCredential(GSSManager mgr)
Overridable method to get GSS accept credential suitable for the current environment. |
GSSManager |
getGSSManager()
Overridable method to get GSS manager suitable for current environment. |
void |
setKeytabFile(String keytabFile)
Set the location of the Kerberos keytab. |
void |
setServicePrincipalName(String servicePrincipalName)
Set the service principal name to be used. |
boolean |
validateIdentity(ServerSession session,
String identity)
Validate the source identity obtained from the context after negotiation is complete. |
boolean |
validateInitialUser(ServerSession session,
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 GSSManager getGSSManager()
public GSSCredential getGSSCredential(GSSManager mgr) throws UnknownHostException, LoginException, GSSException
mgr
- The GSS manager
null
gssapi authentication fails immediately
UnknownHostException
- If the local host name could not be determined
LoginException
- If the subject could not be found
GSSException
- If the credential could not be obtainedpublic boolean validateInitialUser(ServerSession session, String user)
session
- The current sessionuser
- The user name from the initial request
true
if the user is valid, false
if invalidpublic boolean validateIdentity(ServerSession session, String identity)
session
- The current sessionidentity
- The identity from the GSS context
true
if the identity is valid, false
if invalidpublic void setServicePrincipalName(String servicePrincipalName)
servicePrincipalName
- The principal namepublic void setKeytabFile(String keytabFile)
keytabFile
- The location of the keytab
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |