public class GssApiWithMicAuthentication
extends org.apache.sshd.client.auth.AbstractUserAuth
Modifier and Type | Class and Description |
---|---|
private static class |
GssApiWithMicAuthentication.ProtocolState |
Modifier and Type | Field and Description |
---|---|
private org.ietf.jgss.GSSContext |
context |
private org.ietf.jgss.Oid |
currentMechanism |
private java.util.Collection<org.ietf.jgss.Oid> |
mechanisms |
private java.util.Iterator<org.ietf.jgss.Oid> |
nextMechanism |
private static byte |
SSH_MSG_USERAUTH_GSSAPI_RESPONSE
Synonym used in RFC 4462.
|
private static byte |
SSH_MSG_USERAUTH_GSSAPI_TOKEN
Synonym used in RFC 4462.
|
private GssApiWithMicAuthentication.ProtocolState |
state |
Constructor and Description |
---|
GssApiWithMicAuthentication()
Creates a new
GssApiWithMicAuthentication . |
Modifier and Type | Method and Description |
---|---|
private void |
close(boolean silent) |
void |
destroy() |
private java.lang.String |
getHostName(org.apache.sshd.client.session.ClientSession session) |
protected boolean |
processAuthDataRequest(org.apache.sshd.client.session.ClientSession session,
java.lang.String service,
org.apache.sshd.common.util.buffer.Buffer in) |
private void |
replyToken(org.apache.sshd.client.session.ClientSession session,
java.lang.String service,
byte[] bytes) |
protected boolean |
sendAuthDataRequest(org.apache.sshd.client.session.ClientSession session,
java.lang.String service) |
private void |
sendMic(org.apache.sshd.client.session.ClientSession session,
java.lang.String service) |
private void |
sendToken(org.apache.sshd.client.session.ClientSession session,
byte[] receivedToken) |
private boolean |
unexpectedMessage(int command) |
getClientSession, getName, getService, getSession, init, process, toString
getSimplifiedLogger
private static final byte SSH_MSG_USERAUTH_GSSAPI_RESPONSE
private static final byte SSH_MSG_USERAUTH_GSSAPI_TOKEN
private java.util.Collection<org.ietf.jgss.Oid> mechanisms
private java.util.Iterator<org.ietf.jgss.Oid> nextMechanism
private org.ietf.jgss.Oid currentMechanism
private GssApiWithMicAuthentication.ProtocolState state
private org.ietf.jgss.GSSContext context
public GssApiWithMicAuthentication()
GssApiWithMicAuthentication
.protected boolean sendAuthDataRequest(org.apache.sshd.client.session.ClientSession session, java.lang.String service) throws java.lang.Exception
sendAuthDataRequest
in class org.apache.sshd.client.auth.AbstractUserAuth
java.lang.Exception
protected boolean processAuthDataRequest(org.apache.sshd.client.session.ClientSession session, java.lang.String service, org.apache.sshd.common.util.buffer.Buffer in) throws java.lang.Exception
processAuthDataRequest
in class org.apache.sshd.client.auth.AbstractUserAuth
java.lang.Exception
public void destroy()
destroy
in interface org.apache.sshd.client.auth.UserAuth
destroy
in class org.apache.sshd.client.auth.AbstractUserAuth
private void close(boolean silent)
private void sendToken(org.apache.sshd.client.session.ClientSession session, byte[] receivedToken) throws java.io.IOException, org.ietf.jgss.GSSException
java.io.IOException
org.ietf.jgss.GSSException
private void sendMic(org.apache.sshd.client.session.ClientSession session, java.lang.String service) throws java.io.IOException, org.ietf.jgss.GSSException
java.io.IOException
org.ietf.jgss.GSSException
private void replyToken(org.apache.sshd.client.session.ClientSession session, java.lang.String service, byte[] bytes) throws java.io.IOException, org.ietf.jgss.GSSException
java.io.IOException
org.ietf.jgss.GSSException
private java.lang.String getHostName(org.apache.sshd.client.session.ClientSession session)
private boolean unexpectedMessage(int command)