| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public GSSCredential | Returns: The credential; if the result isnull gssapi authentication fails
immediatelyThe GSS manager mgr)Overridable method to get GSS accept credential suitable for the current environment. |
| public GSSManager | Returns: A new managerOverridable method to get GSS manager suitable for current environment. |
| public void | |
| public void | setServicePrincipalName(String
The principal name servicePrincipalName)Set the service principal name to be used. |
| public boolean | Returns: true if the identity is valid, false if invalidThe current session session, String The identity from the GSS context identity)Validate the source identity obtained from the context after negotiation is complete. |
| public boolean | Returns: true if the user is valid, false if invalidThe current session session, String The user name from the initial request user)Validate the user name passed in the initial SSH_MSG_USERAUTH_REQUEST message. |
| keytabFile | back to summary |
|---|---|
| private String keytabFile | |
| servicePrincipalName | back to summary |
|---|---|
| private String servicePrincipalName | |
| GSSAuthenticator | back to summary |
|---|---|
| public GSSAuthenticator() | |
| getGSSCredential | back to summary |
|---|---|
| public GSSCredential getGSSCredential(GSSManager mgr) throws UnknownHostException, LoginException, GSSException Overridable method to get GSS accept credential suitable for the current environment. The default implementation uses a Kerberos key table.
| |
| getGSSManager | back to summary |
|---|---|
| public GSSManager getGSSManager() Overridable method to get GSS manager suitable for current environment.
| |
| setKeytabFile | back to summary |
|---|---|
| public void setKeytabFile(String keytabFile) Set the location of the Kerberos keytab. The default is defined by the JRE.
| |
| setServicePrincipalName | back to summary |
|---|---|
| public void setServicePrincipalName(String servicePrincipalName) Set the service principal name to be used. The default is host/hostname.
| |
| validateIdentity | back to summary |
|---|---|
| public boolean validateIdentity(ServerSession session, String identity) Validate the source identity obtained from the context after negotiation is complete. The default implementation here always succeeds.
| |
| validateInitialUser | back to summary |
|---|---|
| public boolean validateInitialUser(ServerSession session, String user) Validate the user name passed in the initial SSH_MSG_USERAUTH_REQUEST message. This is sort of mandated by RFC 4462, but it may be more useful to wait for the GSS negotiation to complete. The default implementation here always succeeds.
| |