|
||||||||||
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 UserAuth
sess
- 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 HandshakingUserAuth
service
- The service namepublic boolean handles(SshConstants.Message msg)
handles
in interface HandshakingUserAuth
msg
- The message
true
if the message is handledpublic Boolean next(ServerSession session, SshConstants.Message msg, Buffer buffer) throws Exception
next
in interface HandshakingUserAuth
session
- 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 failspublic String getUserName() throws GSSException
getUserName
in interface HandshakingUserAuth
GSSException
public void destroy()
destroy
in interface HandshakingUserAuth
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |