public class GSSAPIWithMICAuthentication extends Object implements AuthenticationMechanism
| Constructor and Description |
|---|
GSSAPIWithMICAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
protected Configuration |
createDefaultConfiguration(SshContext context)
Create the default JAAS
Configuration. |
String |
getMethod()
Return the SSH method name for this authentication.
|
protected String |
getServicePrinicipal(SshContext context) |
void |
init(TransportProtocol transport,
AuthenticationProtocol authentication) |
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(String username,
byte[] msg)
Start an authentication transaction.
|
public static final String NAME
public String getMethod()
AuthenticationMechanismgetMethod in interface AuthenticationMechanismpublic void init(TransportProtocol transport, AuthenticationProtocol authentication) throws IOException
IOExceptionprotected Configuration createDefaultConfiguration(SshContext context)
Configuration. Sub-classes may override
instead of using the configuration supplied by SshContext.context - contextprotected String getServicePrinicipal(SshContext context)
public boolean startRequest(String username, byte[] msg) throws 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 messageIOExceptionpublic boolean processMessage(byte[] msg)
throws IOException
AuthenticationMechanismprocessMessage in interface AuthenticationMechanismIOExceptionCopyright © 2025. All rights reserved.