Package org.apache.sshd.server.auth.gss
Class UserAuthGSS
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.server.auth.AbstractUserAuth
-
- org.apache.sshd.server.auth.gss.UserAuthGSS
-
- All Implemented Interfaces:
UserAuthInstance<ServerSession>
,UsernameHolder
,NamedResource
,UserAuth
,ServerSessionHolder
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.
-
-
Field Summary
Fields Modifier and Type Field Description private org.ietf.jgss.GSSContext
context
private java.lang.String
identity
static org.ietf.jgss.Oid
KRB5_MECH
static org.ietf.jgss.Oid
KRB5_NT_PRINCIPAL
static java.lang.String
NAME
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Constructor Description UserAuthGSS()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.ietf.jgss.Oid
createOID(java.lang.String rep)
Utility to construct an Oid from a string, ignoring the annoying exception.void
destroy()
Free any system resources used by the module.protected java.lang.Boolean
doAuth(Buffer buffer, boolean initial)
-
Methods inherited from class org.apache.sshd.server.auth.AbstractUserAuth
auth, getName, getServerSession, getService, getSession, getUsername, next, toString
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
KRB5_MECH
public static final org.ietf.jgss.Oid KRB5_MECH
-
KRB5_NT_PRINCIPAL
public static final org.ietf.jgss.Oid KRB5_NT_PRINCIPAL
-
context
private org.ietf.jgss.GSSContext context
-
identity
private java.lang.String identity
-
-
Method Detail
-
doAuth
protected java.lang.Boolean doAuth(Buffer buffer, boolean initial) throws java.lang.Exception
- Specified by:
doAuth
in classAbstractUserAuth
- Throws:
java.lang.Exception
-
destroy
public void destroy()
Free any system resources used by the module.- Specified by:
destroy
in interfaceUserAuth
- Overrides:
destroy
in classAbstractUserAuth
-
createOID
public static org.ietf.jgss.Oid createOID(java.lang.String rep)
Utility to construct an Oid from a string, ignoring the annoying exception.- Parameters:
rep
- The string form- Returns:
- The Oid
-
-