|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.auth.spi.AbstractServerLoginModule (src)
org.jboss.resource.security.AbstractPasswordCredentialLoginModule (src)
org.jboss.resource.security.ConfiguredIdentityLoginModule
A simple login module that simply associates the principal specified
in the module options with any subject authenticated against the module.
The type of Principal class used is
org.jboss.security.SimplePrincipal.
If no principal option is specified a principal with the name of 'guest' is used.
SimpleGroup
(src) ,
SimplePrincipal
(src) Field Summary |
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule (src) |
callbackHandler, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass |
Constructor Summary | |
ConfiguredIdentityLoginModule()
|
Method Summary | |
protected java.security.Principal |
getIdentity()
Overriden by subclasses to return the Principal that corresponds to the user primary identity. |
protected java.security.acl.Group[] |
getRoleSets()
This method simply returns an empty array of Groups which means that no role based permissions are assigned. |
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler,
java.util.Map sharedState,
java.util.Map options)
Initialize the login module. |
boolean |
login()
Return false if there is no mcf, else return super.login(). |
Methods inherited from class org.jboss.resource.security.AbstractPasswordCredentialLoginModule (src) |
getMcf, getServer, logout, removeCredentials |
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule (src) |
abort, commit, createGroup, createIdentity, getUnauthenticatedIdentity, getUseFirstPass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConfiguredIdentityLoginModule()
Method Detail |
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler, java.util.Map sharedState, java.util.Map options)
AbstractServerLoginModule (src)
initialize
in interface javax.security.auth.spi.LoginModule
initialize
in class AbstractPasswordCredentialLoginModule (src)
public boolean login() throws javax.security.auth.login.LoginException
AbstractPasswordCredentialLoginModule (src)
login
in interface javax.security.auth.spi.LoginModule
login
in class AbstractPasswordCredentialLoginModule (src)
javax.security.auth.login.LoginException
- if an error occursprotected java.security.Principal getIdentity()
AbstractServerLoginModule (src)
getIdentity
in class AbstractServerLoginModule (src)
protected java.security.acl.Group[] getRoleSets() throws javax.security.auth.login.LoginException
getRoleSets
in class AbstractServerLoginModule (src)
javax.security.auth.login.LoginException
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |