|
||||||||||
PREV CLASS (src) NEXT CLASS | 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.SecureIdentityLoginModule
An example of how one could encrypt the database password for a jca
connection factory. The corresponding
Field Summary |
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule (src) |
callbackHandler, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass |
Constructor Summary | |
SecureIdentityLoginModule()
|
Method Summary | |
boolean |
abort()
Method to abort the authentication process (phase 2). |
boolean |
commit()
Method to commit the authentication process (phase 2). |
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()
Overriden by subclasses to return the Groups that correspond to the to the role sets assigned to the user. |
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(). |
static void |
main(java.lang.String[] args)
Main entry point to encrypt a password using the hard-coded pass phrase |
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) |
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 SecureIdentityLoginModule()
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 occurspublic boolean commit() throws javax.security.auth.login.LoginException
AbstractServerLoginModule (src)
commit
in interface javax.security.auth.spi.LoginModule
commit
in class AbstractServerLoginModule (src)
javax.security.auth.login.LoginException
javax.security.auth.Subject;
,
java.security.acl.Group;
public boolean abort()
AbstractServerLoginModule (src)
abort
in interface javax.security.auth.spi.LoginModule
abort
in class AbstractServerLoginModule (src)
protected java.security.Principal getIdentity()
AbstractServerLoginModule (src)
getIdentity
in class AbstractServerLoginModule (src)
protected java.security.acl.Group[] getRoleSets() throws javax.security.auth.login.LoginException
AbstractServerLoginModule (src)
getRoleSets
in class AbstractServerLoginModule (src)
javax.security.auth.login.LoginException
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- - [0] = the password to encode
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |