|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.security.jaas.server.JaasLoginService
The single point of contact for Geronimo JAAS realms. Instead of attempting to interact with JAAS realms directly, a client should either interact with this service, or use a LoginModule implementation that interacts with this service.
Field Summary | |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
JaasLoginService(String algorithm,
String password,
ClassLoader classLoader,
String objectName)
|
Method Summary | |
JaasSessionId |
connectToRealm(String realmName)
Starts a new authentication process on behalf of an end user. |
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
int |
getExpiredLoginScanIntervalMillis()
GBean property |
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
JaasLoginModuleConfiguration[] |
getLoginConfiguration(JaasSessionId sessionHandle)
Gets the login module configuration for the specified realm. |
int |
getMaxLoginDurationMillis()
GBean property |
String |
getObjectName()
|
Collection |
getRealms()
GBean property |
Callback[] |
getServerLoginCallbacks(JaasSessionId sessionHandle,
int loginModuleIndex)
Retrieves callbacks for a server side login module. |
void |
loginFailed(JaasSessionId sessionHandle)
Indicates that the overall login failed, and the server should release any resources associated with the user ID. |
Principal |
loginSucceeded(JaasSessionId sessionHandle)
Indicates that the overall login succeeded. |
void |
logout(JaasSessionId sessionHandle)
Indicates that the client has logged out, and the server should release any resources associated with the user ID. |
boolean |
performCommit(JaasSessionId sessionHandle,
int loginModuleIndex)
Indicates that the overall login succeeded, and some principals were generated by a client-side login module. |
boolean |
performLogin(JaasSessionId sessionHandle,
int loginModuleIndex,
Callback[] results)
Returns populated callbacks for a server side login module. |
void |
setExpiredLoginScanIntervalMillis(int expiredLoginScanIntervalMillis)
GBean property |
void |
setMaxLoginDurationMillis(int maxLoginDurationMillis)
GBean property |
void |
setRealms(Collection realms)
GBean property |
Set |
syncPrincipals(JaasSessionId sessionHandle,
Set principals)
Syncs the set of principals that are on the client with the set of principals that are on the server. |
Map |
syncShareState(JaasSessionId sessionHandle,
Map sharedState)
Syncs the shared state that's on thye client with the shared state that is on the server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.apache.commons.logging.Log log
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail |
public JaasLoginService(String algorithm, String password, ClassLoader classLoader, String objectName)
Method Detail |
public String getObjectName()
getObjectName
in interface org.apache.geronimo.management.geronimo.LoginService
public Collection getRealms()
getRealms
in interface org.apache.geronimo.management.geronimo.LoginService
public void setRealms(Collection realms)
setRealms
in interface org.apache.geronimo.management.geronimo.LoginService
public int getMaxLoginDurationMillis()
getMaxLoginDurationMillis
in interface org.apache.geronimo.management.geronimo.LoginService
public void setMaxLoginDurationMillis(int maxLoginDurationMillis)
setMaxLoginDurationMillis
in interface org.apache.geronimo.management.geronimo.LoginService
public int getExpiredLoginScanIntervalMillis()
getExpiredLoginScanIntervalMillis
in interface org.apache.geronimo.management.geronimo.LoginService
public void setExpiredLoginScanIntervalMillis(int expiredLoginScanIntervalMillis)
setExpiredLoginScanIntervalMillis
in interface org.apache.geronimo.management.geronimo.LoginService
public void doStart() throws Exception
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
Exception
public void doStop() throws Exception
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
Exception
public void doFail()
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
public JaasSessionId connectToRealm(String realmName)
connectToRealm
in interface JaasLoginServiceMBean
public JaasLoginModuleConfiguration[] getLoginConfiguration(JaasSessionId sessionHandle) throws LoginException
getLoginConfiguration
in interface JaasLoginServiceMBean
LoginException
public Callback[] getServerLoginCallbacks(JaasSessionId sessionHandle, int loginModuleIndex) throws LoginException
getServerLoginCallbacks
in interface JaasLoginServiceMBean
LoginException
public boolean performLogin(JaasSessionId sessionHandle, int loginModuleIndex, Callback[] results) throws LoginException
performLogin
in interface JaasLoginServiceMBean
LoginException
public boolean performCommit(JaasSessionId sessionHandle, int loginModuleIndex) throws LoginException
performCommit
in interface JaasLoginServiceMBean
LoginException
public Principal loginSucceeded(JaasSessionId sessionHandle) throws LoginException
loginSucceeded
in interface JaasLoginServiceMBean
sessionHandle
- the handle to the login session
LoginException
- if the handle is no longer valid.public void loginFailed(JaasSessionId sessionHandle)
loginFailed
in interface JaasLoginServiceMBean
public void logout(JaasSessionId sessionHandle) throws LoginException
logout
in interface JaasLoginServiceMBean
LoginException
public Map syncShareState(JaasSessionId sessionHandle, Map sharedState) throws LoginException
syncShareState
in interface JaasLoginServiceMBean
sessionHandle
- sharedState
- the shared state that is on the client
LoginException
public Set syncPrincipals(JaasSessionId sessionHandle, Set principals) throws LoginException
syncPrincipals
in interface JaasLoginServiceMBean
sessionHandle
- principals
- the set of principals that are on the client side
LoginException
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |