Class GssApiWithMicAuthentication
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.client.auth.AbstractUserAuth
org.eclipse.jgit.internal.transport.sshd.GssApiWithMicAuthentication
- All Implemented Interfaces:
org.apache.sshd.client.auth.UserAuth,org.apache.sshd.client.session.ClientSessionHolder,org.apache.sshd.common.auth.UserAuthInstance<org.apache.sshd.client.session.ClientSession>,org.apache.sshd.common.NamedResource
public class GssApiWithMicAuthentication
extends org.apache.sshd.client.auth.AbstractUserAuth
GSSAPI-with-MIC authentication handler (Kerberos 5).
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GSSContextprivate Oidprivate Collection<Oid>private static final byteSynonym used in RFC 4462.private static final byteSynonym used in RFC 4462.Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
logFields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidclose(boolean silent) voiddestroy()private StringgetHostName(org.apache.sshd.client.session.ClientSession session) protected booleanprocessAuthDataRequest(org.apache.sshd.client.session.ClientSession session, String service, org.apache.sshd.common.util.buffer.Buffer in) private voidreplyToken(org.apache.sshd.client.session.ClientSession session, String service, byte[] bytes) protected booleansendAuthDataRequest(org.apache.sshd.client.session.ClientSession session, String service) private voidprivate voidsendToken(org.apache.sshd.client.session.ClientSession session, byte[] receivedToken) private booleanunexpectedMessage(int command) Methods inherited from class org.apache.sshd.client.auth.AbstractUserAuth
getClientSession, getName, getService, getSession, init, process, toStringMethods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sshd.client.auth.UserAuth
signalAuthMethodFailure, signalAuthMethodSuccess
-
Field Details
-
SSH_MSG_USERAUTH_GSSAPI_RESPONSE
private static final byte SSH_MSG_USERAUTH_GSSAPI_RESPONSESynonym used in RFC 4462.- See Also:
-
SSH_MSG_USERAUTH_GSSAPI_TOKEN
private static final byte SSH_MSG_USERAUTH_GSSAPI_TOKENSynonym used in RFC 4462.- See Also:
-
mechanisms
-
nextMechanism
-
currentMechanism
-
state
-
context
-
-
Constructor Details
-
GssApiWithMicAuthentication
public GssApiWithMicAuthentication()Creates a newGssApiWithMicAuthentication.
-
-
Method Details
-
sendAuthDataRequest
protected boolean sendAuthDataRequest(org.apache.sshd.client.session.ClientSession session, String service) throws Exception - Specified by:
sendAuthDataRequestin classorg.apache.sshd.client.auth.AbstractUserAuth- Throws:
Exception
-
processAuthDataRequest
protected boolean processAuthDataRequest(org.apache.sshd.client.session.ClientSession session, String service, org.apache.sshd.common.util.buffer.Buffer in) throws Exception - Specified by:
processAuthDataRequestin classorg.apache.sshd.client.auth.AbstractUserAuth- Throws:
Exception
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.apache.sshd.client.auth.UserAuth- Overrides:
destroyin classorg.apache.sshd.client.auth.AbstractUserAuth
-
close
private void close(boolean silent) -
sendToken
private void sendToken(org.apache.sshd.client.session.ClientSession session, byte[] receivedToken) throws IOException, GSSException - Throws:
IOExceptionGSSException
-
sendMic
private void sendMic(org.apache.sshd.client.session.ClientSession session, String service) throws IOException, GSSException - Throws:
IOExceptionGSSException
-
replyToken
private void replyToken(org.apache.sshd.client.session.ClientSession session, String service, byte[] bytes) throws IOException, GSSException - Throws:
IOExceptionGSSException
-
getHostName
-
unexpectedMessage
private boolean unexpectedMessage(int command)
-