|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.GSSAPIWithMICAuthentication
public class GSSAPIWithMICAuthentication
| Constructor Summary | |
|---|---|
GSSAPIWithMICAuthentication()
|
|
| Method Summary | |
|---|---|
protected javax.security.auth.login.Configuration |
createDefaultConfiguration(SshContext context)
Create the default JAAS Configuration. |
java.lang.String |
getMethod()
Return the SSH method name for this authentication. |
protected java.lang.String |
getServicePrinicipal(SshContext context)
|
void |
init(TransportProtocol transport,
AuthenticationProtocol authentication,
byte[] sessionId)
Initializes the mechanism with variables. |
boolean |
processMessage(byte[] msg)
If the SSH protocol authentication method defines additional messages which are sent from the client, they will be passed into your implementation here when received. |
boolean |
startRequest(java.lang.String username,
byte[] msg)
Start an authentication transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GSSAPIWithMICAuthentication()
| Method Detail |
|---|
public java.lang.String getMethod()
AuthenticationMechanism
getMethod in interface AuthenticationMechanism
public void init(TransportProtocol transport,
AuthenticationProtocol authentication,
byte[] sessionId)
throws java.io.IOException
AuthenticationMechanism
init in interface AuthenticationMechanismtransport - the transport protocolauthentication - the authentication protocolsessionId - the id of the current session.
java.io.IOExceptionprotected javax.security.auth.login.Configuration createDefaultConfiguration(SshContext context)
Configuration. Sub-classes may override
instead of using the configuration supplied by SshContext.
context - context
protected java.lang.String getServicePrinicipal(SshContext context)
public boolean startRequest(java.lang.String username,
byte[] msg)
throws java.io.IOException
AuthenticationMechanismAuthenticationProtocol
instance that was passed in the initialization process. The request
data varies according to the authentication method.
if (success) authentication.completedAuthentication(method, username, service); else authentication.failedAuthentication(method);
startRequest in interface AuthenticationMechanismmsg - the request data from the SSH_MSG_USERAUTH_REQUEST message
java.io.IOException
public boolean processMessage(byte[] msg)
throws java.io.IOException
AuthenticationMechanism
processMessage in interface AuthenticationMechanismjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||