|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.plugin.CRaSHPlugin<AuthenticationPlugin>
org.crsh.auth.JaasAuthenticationPlugin
public class JaasAuthenticationPlugin
A jaas plugin for authentication purpose
Field Summary | |
---|---|
(package private) static PropertyDescriptor<String> |
JAAS_DOMAIN
. |
Fields inherited from class org.crsh.plugin.CRaSHPlugin |
---|
CONSTRUCTED, FAILED, INITIALIZED, INITIALIZING, log |
Constructor Summary | |
---|---|
JaasAuthenticationPlugin()
|
Method Summary | |
---|---|
boolean |
authenticate(String username,
String password)
Returns true if the user is authentified by its username and password. |
protected Iterable<PropertyDescriptor<?>> |
createConfigurationCapabilities()
Returns a list of PropertyDescriptor this plugin requires for its configuration. |
AuthenticationPlugin |
getImplementation()
Returns the implementation. |
String |
getName()
Returns the authentication plugin name. |
Methods inherited from class org.crsh.plugin.CRaSHPlugin |
---|
destroy, getConfigurationCapabilities, getContext, getStatus, getType, init, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final PropertyDescriptor<String> JAAS_DOMAIN
Constructor Detail |
---|
public JaasAuthenticationPlugin()
Method Detail |
---|
public String getName()
AuthenticationPlugin
getName
in interface AuthenticationPlugin
protected Iterable<PropertyDescriptor<?>> createConfigurationCapabilities()
CRaSHPlugin
PropertyDescriptor
this plugin requires for its configuration.
createConfigurationCapabilities
in class CRaSHPlugin<AuthenticationPlugin>
public boolean authenticate(String username, String password) throws Exception
AuthenticationPlugin
authenticate
in interface AuthenticationPlugin
username
- the usernamepassword
- the password
Exception
- any exception that would prevent authentication to happenpublic AuthenticationPlugin getImplementation()
CRaSHPlugin
getImplementation
in class CRaSHPlugin<AuthenticationPlugin>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |