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 GSSContext
private Oid
private Collection<Oid>
private static final byte
Synonym used in RFC 4462.private static final byte
Synonym used in RFC 4462.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 -
Method Summary
Modifier and TypeMethodDescriptionprivate void
close
(boolean silent) void
destroy()
private String
getHostName
(org.apache.sshd.client.session.ClientSession session) protected boolean
processAuthDataRequest
(org.apache.sshd.client.session.ClientSession session, String service, org.apache.sshd.common.util.buffer.Buffer in) private void
replyToken
(org.apache.sshd.client.session.ClientSession session, String service, byte[] bytes) protected boolean
sendAuthDataRequest
(org.apache.sshd.client.session.ClientSession session, String service) private void
private void
sendToken
(org.apache.sshd.client.session.ClientSession session, byte[] receivedToken) private boolean
unexpectedMessage
(int command) Methods inherited from class org.apache.sshd.client.auth.AbstractUserAuth
getClientSession, getName, getService, getSession, init, process, toString
Methods 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, warn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
sendAuthDataRequest
in 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:
processAuthDataRequest
in classorg.apache.sshd.client.auth.AbstractUserAuth
- Throws:
Exception
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.apache.sshd.client.auth.UserAuth
- Overrides:
destroy
in 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:
IOException
GSSException
-
sendMic
private void sendMic(org.apache.sshd.client.session.ClientSession session, String service) throws IOException, GSSException - Throws:
IOException
GSSException
-
replyToken
private void replyToken(org.apache.sshd.client.session.ClientSession session, String service, byte[] bytes) throws IOException, GSSException - Throws:
IOException
GSSException
-
getHostName
-
unexpectedMessage
private boolean unexpectedMessage(int command)
-