|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.plugin.CRaSHPlugin<KeyAuthenticationPlugin>
org.crsh.auth.KeyAuthenticationPlugin
public class KeyAuthenticationPlugin
| Field Summary | |
|---|---|
static PropertyDescriptor<String> |
AUTHORIZED_KEY_PATH
The SSH authorized key path. |
private Set<PublicKey> |
authorizedKeys
. |
private static String[] |
TYPES
. |
| 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)
Returns true if the user is authentified by its username and credential. |
protected Iterable<PropertyDescriptor<?>> |
createConfigurationCapabilities()
Returns a list of PropertyDescriptor this plugin requires for its configuration. |
Class<PublicKey> |
getCredentialType()
Returns the credential type. |
KeyAuthenticationPlugin |
getImplementation()
Returns the implementation. |
String |
getName()
Returns the authentication plugin name. |
void |
init()
Implement this method to know about init life cycle callback. |
| 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 |
|---|
private static final String[] TYPES
public static final PropertyDescriptor<String> AUTHORIZED_KEY_PATH
private Set<PublicKey> authorizedKeys
| Constructor Detail |
|---|
public KeyAuthenticationPlugin()
| Method Detail |
|---|
protected Iterable<PropertyDescriptor<?>> createConfigurationCapabilities()
CRaSHPluginPropertyDescriptor this plugin requires for its configuration.
createConfigurationCapabilities in class CRaSHPlugin<KeyAuthenticationPlugin>public String getName()
AuthenticationPlugin
getName in interface AuthenticationPlugin<PublicKey>public KeyAuthenticationPlugin getImplementation()
CRaSHPlugin
getImplementation in class CRaSHPlugin<KeyAuthenticationPlugin>public Class<PublicKey> getCredentialType()
AuthenticationPlugin
getCredentialType in interface AuthenticationPlugin<PublicKey>public void init()
CRaSHPlugin
init in class CRaSHPlugin<KeyAuthenticationPlugin>
public boolean authenticate(String username,
PublicKey credential)
throws Exception
AuthenticationPlugin
authenticate in interface AuthenticationPlugin<PublicKey>username - the usernamecredential - the credential
Exception - any exception that would prevent authentication to happen
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||