org.crsh.auth
Class KeyAuthenticationPlugin

java.lang.Object
  extended by org.crsh.plugin.CRaSHPlugin<KeyAuthenticationPlugin>
      extended by org.crsh.auth.KeyAuthenticationPlugin
All Implemented Interfaces:
AuthenticationPlugin<PublicKey>

public class KeyAuthenticationPlugin
extends CRaSHPlugin<KeyAuthenticationPlugin>
implements AuthenticationPlugin<PublicKey>

Author:
Julien Viet

Field Summary
static PropertyDescriptor<String> AUTHORIZED_KEY_PATH
          The SSH authorized key path.
 
Fields inherited from class org.crsh.plugin.CRaSHPlugin
CONSTRUCTED, FAILED, INITIALIZED, INITIALIZING, log
 
Fields inherited from interface org.crsh.auth.AuthenticationPlugin
AUTH, NULL
 
Constructor Summary
KeyAuthenticationPlugin()
           
 
Method Summary
 boolean authenticate(String username, PublicKey credential)
           
protected  Iterable<PropertyDescriptor<?>> createConfigurationCapabilities()
           
 Class<PublicKey> getCredentialType()
           
 KeyAuthenticationPlugin getImplementation()
           
 String getName()
           
 void init()
           
 
Methods inherited from class org.crsh.plugin.CRaSHPlugin
destroy, getConfigurationCapabilities, getContext, getStatus, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTHORIZED_KEY_PATH

public static final PropertyDescriptor<String> AUTHORIZED_KEY_PATH
The SSH authorized key path.

Constructor Detail

KeyAuthenticationPlugin

public KeyAuthenticationPlugin()
Method Detail

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.