|
||||||||||
| 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
public class 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 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 |
performAbort(JaasSessionId sessionHandle,
int loginModuleIndex)
Indicates that the overall login failed. |
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 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.LoginServicepublic Collection getRealms()
getRealms in interface org.apache.geronimo.management.geronimo.LoginServicepublic void setRealms(Collection realms)
setRealms in interface org.apache.geronimo.management.geronimo.LoginServicepublic int getMaxLoginDurationMillis()
getMaxLoginDurationMillis in interface org.apache.geronimo.management.geronimo.LoginServicepublic void setMaxLoginDurationMillis(int maxLoginDurationMillis)
setMaxLoginDurationMillis in interface org.apache.geronimo.management.geronimo.LoginServicepublic int getExpiredLoginScanIntervalMillis()
getExpiredLoginScanIntervalMillis in interface org.apache.geronimo.management.geronimo.LoginServicepublic 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.GBeanLifecycleException
public void doStop()
throws Exception
doStop in interface org.apache.geronimo.gbean.GBeanLifecycleExceptionpublic void doFail()
doFail in interface org.apache.geronimo.gbean.GBeanLifecyclepublic JaasSessionId connectToRealm(String realmName)
connectToRealm in interface JaasLoginServiceMBean
public JaasLoginModuleConfiguration[] getLoginConfiguration(JaasSessionId sessionHandle)
throws LoginException
getLoginConfiguration in interface JaasLoginServiceMBeanLoginException
public Callback[] getServerLoginCallbacks(JaasSessionId sessionHandle,
int loginModuleIndex)
throws LoginException
getServerLoginCallbacks in interface JaasLoginServiceMBeanLoginException
public boolean performLogin(JaasSessionId sessionHandle,
int loginModuleIndex,
Callback[] results)
throws LoginException
performLogin in interface JaasLoginServiceMBeanLoginException
public boolean performCommit(JaasSessionId sessionHandle,
int loginModuleIndex)
throws LoginException
performCommit in interface JaasLoginServiceMBeanLoginException
public boolean performAbort(JaasSessionId sessionHandle,
int loginModuleIndex)
throws LoginException
performAbort in interface JaasLoginServiceMBeanLoginException
public Principal loginSucceeded(JaasSessionId sessionHandle)
throws LoginException
loginSucceeded in interface JaasLoginServiceMBeansessionHandle - 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 JaasLoginServiceMBeanLoginException
public Map syncShareState(JaasSessionId sessionHandle,
Map sharedState)
throws LoginException
syncShareState in interface JaasLoginServiceMBeansessionHandle - sharedState - the shared state that is on the client
LoginException
public Set syncPrincipals(JaasSessionId sessionHandle,
Set principals)
throws LoginException
syncPrincipals in interface JaasLoginServiceMBeansessionHandle - principals - the set of principals that are on the client side
LoginExceptionpublic static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||