public class SshKeyAuthenticationPlugin extends org.crsh.plugin.CRaSHPlugin<SshKeyAuthenticationPlugin> implements org.crsh.auth.AuthenticationPlugin<java.security.PublicKey>
| Modifier and Type | Field and Description |
|---|---|
static org.crsh.plugin.PropertyDescriptor<java.lang.String> |
AUTHORIZED_KEY_PATH
The SSH authorized key path.
|
| Constructor and Description |
|---|
SshKeyAuthenticationPlugin() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(java.lang.String username,
java.security.PublicKey credential) |
protected java.lang.Iterable<org.crsh.plugin.PropertyDescriptor<?>> |
createConfigurationCapabilities() |
java.lang.Class<java.security.PublicKey> |
getCredentialType() |
SshKeyAuthenticationPlugin |
getImplementation() |
java.lang.String |
getName() |
void |
init() |
public static final org.crsh.plugin.PropertyDescriptor<java.lang.String> AUTHORIZED_KEY_PATH
protected java.lang.Iterable<org.crsh.plugin.PropertyDescriptor<?>> createConfigurationCapabilities()
createConfigurationCapabilities in class org.crsh.plugin.CRaSHPlugin<SshKeyAuthenticationPlugin>public java.lang.String getName()
getName in interface org.crsh.auth.AuthenticationPlugin<java.security.PublicKey>public SshKeyAuthenticationPlugin getImplementation()
getImplementation in class org.crsh.plugin.CRaSHPlugin<SshKeyAuthenticationPlugin>public java.lang.Class<java.security.PublicKey> getCredentialType()
getCredentialType in interface org.crsh.auth.AuthenticationPlugin<java.security.PublicKey>public void init()
init in class org.crsh.plugin.CRaSHPlugin<SshKeyAuthenticationPlugin>public boolean authenticate(java.lang.String username,
java.security.PublicKey credential)
throws java.lang.Exception
authenticate in interface org.crsh.auth.AuthenticationPlugin<java.security.PublicKey>java.lang.Exception