|
||||||||||
| 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 Oid |
KRB5_MECH
|
static Oid |
KRB5_NT_PRINCIPAL
|
| Constructor Summary | |
|---|---|
UserAuthGSS()
|
|
| Method Summary | |
|---|---|
Boolean |
auth(ServerSession sess,
String user,
Buffer buff)
Handle the first authentication step. |
void |
destroy()
Free any system resources used by the module. |
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. |
Boolean |
next(ServerSession session,
SshConstants.Message msg,
Buffer buffer)
Handle another step in the authentication process. |
void |
setServiceName(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 Oid KRB5_MECH
public static final Oid KRB5_NT_PRINCIPAL
| Constructor Detail |
|---|
public UserAuthGSS()
| Method Detail |
|---|
public Boolean auth(ServerSession sess,
String user,
Buffer buff)
throws Exception
auth in interface UserAuthsess - The server sessionuser - The user name from the requestbuff - The request buffer
null to continue further
Exception - If something went wrongpublic void setServiceName(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 Boolean next(ServerSession session,
SshConstants.Message msg,
Buffer buffer)
throws 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
Exception - if the authentication fails
public String getUserName()
throws GSSException
getUserName in interface HandshakingUserAuthGSSExceptionpublic void destroy()
destroy in interface HandshakingUserAuth
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||