org.crsh.auth
Class KeyAuthenticationPlugin
java.lang.Object
org.crsh.plugin.CRaSHPlugin<KeyAuthenticationPlugin>
org.crsh.auth.KeyAuthenticationPlugin
- All Implemented Interfaces:
- AuthenticationPlugin<PublicKey>
public class KeyAuthenticationPlugin
- extends CRaSHPlugin<KeyAuthenticationPlugin>
- implements AuthenticationPlugin<PublicKey>
- Author:
- Julien Viet
AUTHORIZED_KEY_PATH
public static final PropertyDescriptor<String> AUTHORIZED_KEY_PATH
- The SSH authorized key path.
KeyAuthenticationPlugin
public KeyAuthenticationPlugin()
createConfigurationCapabilities
protected Iterable<PropertyDescriptor<?>> createConfigurationCapabilities()
- Overrides:
createConfigurationCapabilities in class CRaSHPlugin<KeyAuthenticationPlugin>
getName
public String getName()
- Specified by:
getName in interface AuthenticationPlugin<PublicKey>
getImplementation
public KeyAuthenticationPlugin getImplementation()
- Specified by:
getImplementation in class CRaSHPlugin<KeyAuthenticationPlugin>
getCredentialType
public Class<PublicKey> getCredentialType()
- Specified by:
getCredentialType in interface AuthenticationPlugin<PublicKey>
init
public void init()
- Overrides:
init in class CRaSHPlugin<KeyAuthenticationPlugin>
authenticate
public boolean authenticate(String username,
PublicKey credential)
throws Exception
- Specified by:
authenticate in interface AuthenticationPlugin<PublicKey>
- Throws:
Exception
Copyright © 2015 eXo Platform SAS. All Rights Reserved.