|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sshd.server.auth.gss.UserAuthGSS
public class UserAuthGSS
Prototype user authentication handling gssapi-with-mic. Implements HandshakingUserAuth because
the process involves several steps.
Several methods are available for overriding in specific circumstances.
| Nested Class Summary | |
|---|---|
static class |
UserAuthGSS.Factory
Factory class. |
| Field Summary | |
|---|---|
static org.ietf.jgss.Oid |
KRB5_MECH
|
static org.ietf.jgss.Oid |
KRB5_NT_PRINCIPAL
|
| Constructor Summary | |
|---|---|
UserAuthGSS()
|
|
| Method Summary | |
|---|---|
java.lang.Boolean |
auth(ServerSession sess,
java.lang.String user,
Buffer buff)
Handle the first authentication step. |
void |
destroy()
Free any system resources used by the module. |
java.lang.String |
getUserName()
Get a user name which has been derived from the handshaking process, or the initial name if nothing has been found. |
boolean |
handles(SshConstants.Message msg)
Check whether a particular message is handled here. |
java.lang.Boolean |
next(ServerSession session,
SshConstants.Message msg,
Buffer buffer)
Handle another step in the authentication process. |
void |
setServiceName(java.lang.String service)
Set the service name from the original request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.ietf.jgss.Oid KRB5_MECH
public static final org.ietf.jgss.Oid KRB5_NT_PRINCIPAL
| Constructor Detail |
|---|
public UserAuthGSS()
| Method Detail |
|---|
public java.lang.Boolean auth(ServerSession sess,
java.lang.String user,
Buffer buff)
throws java.lang.Exception
auth in interface UserAuthsess - The server sessionuser - The user name from the requestbuff - The request buffer
null to continue further
java.lang.Exception - If something went wrongpublic void setServiceName(java.lang.String service)
setServiceName in interface HandshakingUserAuthservice - The service namepublic boolean handles(SshConstants.Message msg)
handles in interface HandshakingUserAuthmsg - The message
true if the message is handled
public java.lang.Boolean next(ServerSession session,
SshConstants.Message msg,
Buffer buffer)
throws java.lang.Exception
next in interface HandshakingUserAuthsession - the current ssh sessionbuffer - the request buffer containing parameters specific to this requestmsg - The message type
true if the authentication succeeded, false if the authentication
is not finished yet
java.lang.Exception - if the authentication fails
public java.lang.String getUserName()
throws org.ietf.jgss.GSSException
getUserName in interface HandshakingUserAuthorg.ietf.jgss.GSSExceptionpublic void destroy()
destroy in interface HandshakingUserAuth
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||