public class KeyAuthenticationPlugin extends CRaSHPlugin<KeyAuthenticationPlugin> implements AuthenticationPlugin<PublicKey>
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor<String> |
AUTHORIZED_KEY_PATH
The SSH authorized key path.
|
CONSTRUCTED, FAILED, INITIALIZED, INITIALIZING, logAUTH, NULL| Constructor and Description |
|---|
KeyAuthenticationPlugin() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
PublicKey credential) |
protected Iterable<PropertyDescriptor<?>> |
createConfigurationCapabilities() |
Class<PublicKey> |
getCredentialType() |
KeyAuthenticationPlugin |
getImplementation() |
String |
getName() |
void |
init() |
destroy, getConfigurationCapabilities, getContext, getStatus, getType, toStringpublic static final PropertyDescriptor<String> AUTHORIZED_KEY_PATH
protected Iterable<PropertyDescriptor<?>> createConfigurationCapabilities()
createConfigurationCapabilities in class CRaSHPlugin<KeyAuthenticationPlugin>public String getName()
getName in interface AuthenticationPlugin<PublicKey>public KeyAuthenticationPlugin getImplementation()
getImplementation in class CRaSHPlugin<KeyAuthenticationPlugin>public Class<PublicKey> getCredentialType()
getCredentialType in interface AuthenticationPlugin<PublicKey>public void init()
init in class CRaSHPlugin<KeyAuthenticationPlugin>public boolean authenticate(String username, PublicKey credential) throws Exception
authenticate in interface AuthenticationPlugin<PublicKey>ExceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.