public class UserAuthGSS extends AbstractUserAuth
Prototype user authentication handling gssapi-with-mic. Implements HandshakingUserAuth because
the process involves several steps.
Several methods are available for overriding in specific circumstances.
| Modifier and Type | Field and Description |
|---|---|
static Oid |
KRB5_MECH |
static Oid |
KRB5_NT_PRINCIPAL |
service, session, usernamelog| Constructor and Description |
|---|
UserAuthGSS() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Free any system resources used by the module.
|
protected Boolean |
doAuth(Buffer buffer,
boolean initial)
Handle the first authentication step.
|
protected GSSAuthenticator |
getAuthenticator(ServerSession session)
Utility to get the configured GSS authenticator for the server, throwing an exception if none is available.
|
String |
getUserName()
Get a user name which has been derived from the handshaking process, or the initial name if
nothing has been found.
|
auth, getService, nextpublic static final Oid KRB5_MECH
public static final Oid KRB5_NT_PRINCIPAL
protected Boolean doAuth(Buffer buffer, boolean initial) throws Exception
doAuth in class AbstractUserAuthExceptionpublic String getUserName()
getUserName in interface UserAuthgetUserName in class AbstractUserAuthpublic void destroy()
destroy in interface UserAuthdestroy in class AbstractUserAuthprotected GSSAuthenticator getAuthenticator(ServerSession session) throws Exception
session - The current ServerSessionGSSAuthenticator - never nullException - If no GSS authenticator is definedCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.