Top Description Fields Constructors Methods
org.apache.sshd.server.auth.gss

public Class UserAuthGSS

extends AbstractUserAuth
Class Inheritance
Imports
java.util.Objects, org.apache.sshd.common.SshConstants, .SshException, org.apache.sshd.common.util.NumberUtils, .ValidateUtils, org.apache.sshd.common.util.buffer.Buffer, .ByteArrayBuffer, org.apache.sshd.server.auth.AbstractUserAuth, org.apache.sshd.server.session.ServerSession, org.ietf.jgss.GSSContext, .GSSCredential, .GSSException, .GSSManager, .GSSName, .MessageProp, .Oid

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

Modifier and TypeField and Description
private GSSContext
private String
public static final Oid
public static final Oid
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Oid

Returns:

The Oid
createOID
(String
The string form
rep
)

Utility to construct an Oid from a string, ignoring the annoying exception.

public void
destroy()

Overrides org.apache.sshd.server.auth.AbstractUserAuth.destroy.

Implements org.apache.sshd.server.auth.UserAuth.destroy.

Free any system resources used by the module.

protected Boolean
doAuth(Buffer buffer, boolean initial)

Implements abstract org.apache.sshd.server.auth.AbstractUserAuth.doAuth.

Inherited from org.apache.sshd.server.auth.AbstractUserAuth:
authgetNamegetServerSessiongetServicegetSessiongetUsernamenexttoString

Field Detail

contextback to summary
private GSSContext context
identityback to summary
private String identity
KRB5_MECHback to summary
public static final Oid KRB5_MECH
KRB5_NT_PRINCIPALback to summary
public static final Oid KRB5_NT_PRINCIPAL
NAMEback to summary
public static final String NAME

Constructor Detail

UserAuthGSSback to summary
public UserAuthGSS()

Method Detail

createOIDback to summary
public static Oid createOID(String rep)

Utility to construct an Oid from a string, ignoring the annoying exception.

Parameters
rep:String

The string form

Returns:Oid

The Oid

destroyback to summary
public void destroy()

Overrides org.apache.sshd.server.auth.AbstractUserAuth.destroy.

Implements org.apache.sshd.server.auth.UserAuth.destroy.

Free any system resources used by the module.

Annotations
@Override
doAuthback to summary
protected Boolean doAuth(Buffer buffer, boolean initial) throws Exception

Implements abstract org.apache.sshd.server.auth.AbstractUserAuth.doAuth.

Annotations
@Override