|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jecars.CARS_LoginModule
public class CARS_LoginModule
CARS_LoginModule
| Constructor Summary | |
|---|---|
CARS_LoginModule()
|
|
| Method Summary | |
|---|---|
boolean |
abort()
|
boolean |
commit()
|
java.lang.String |
getAnonymousId()
Returns the anonymous user id. |
java.lang.String |
getDefaultUserId()
Returns the default user id. |
protected static javax.jcr.Node |
getKeyNode(java.lang.String pKey)
getKeyNode |
protected static java.util.Collection<javax.jcr.Node> |
getUserKeys(java.lang.String pUsername)
Get all current active keys of the give username |
void |
initialize(javax.security.auth.Subject pSubject,
javax.security.auth.callback.CallbackHandler pCallbackHandler,
java.util.Map pSharedState,
java.util.Map pOptions)
|
boolean |
login()
|
boolean |
logout()
|
void |
setAnonymousId(java.lang.String pAnonymousId)
Sets the default user id to be used when no login credentials are presented. |
void |
setDefaultUserId(java.lang.String pDefaultUserId)
Sets the default user id to be used when no login credentials are presented. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CARS_LoginModule()
| Method Detail |
|---|
public java.lang.String getAnonymousId()
public void setAnonymousId(java.lang.String pAnonymousId)
pAnonymousId - user idpublic java.lang.String getDefaultUserId()
public void setDefaultUserId(java.lang.String pDefaultUserId)
pDefaultUserId - default user id
public void initialize(javax.security.auth.Subject pSubject,
javax.security.auth.callback.CallbackHandler pCallbackHandler,
java.util.Map pSharedState,
java.util.Map pOptions)
initialize in interface javax.security.auth.spi.LoginModule
protected static java.util.Collection<javax.jcr.Node> getUserKeys(java.lang.String pUsername)
throws javax.jcr.RepositoryException
pUsername -
javax.jcr.RepositoryException
protected static javax.jcr.Node getKeyNode(java.lang.String pKey)
throws javax.jcr.RepositoryException
pKey -
javax.jcr.RepositoryException
public boolean login()
throws javax.security.auth.login.LoginException
login in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginException
public boolean commit()
throws javax.security.auth.login.LoginException
commit in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginException
public boolean abort()
throws javax.security.auth.login.LoginException
abort in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginException
public boolean logout()
throws javax.security.auth.login.LoginException
logout in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||