|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface used to connect to the JaasLoginService via remoting, etc. This may no longer be necessary?
Method Summary | |
JaasSessionId |
connectToRealm(String realmName)
Starts a new authentication process on behalf of an end user. |
JaasLoginModuleConfiguration[] |
getLoginConfiguration(JaasSessionId sessionHandle)
Gets the login module configuration for the specified realm. |
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. |
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 the client with the shared state that is on the server. |
Methods inherited from interface org.apache.geronimo.management.geronimo.LoginService |
getExpiredLoginScanIntervalMillis, getMaxLoginDurationMillis, getObjectName, getRealms, setExpiredLoginScanIntervalMillis, setMaxLoginDurationMillis, setRealms |
Method Detail |
public JaasSessionId connectToRealm(String realmName)
JaasSessionId
used as an argument for the rest of the
methods in this class.public JaasLoginModuleConfiguration[] getLoginConfiguration(JaasSessionId sessionHandle) throws LoginException
LoginException
public Callback[] getServerLoginCallbacks(JaasSessionId sessionHandle, int loginModuleIndex) throws LoginException
LoginException
public boolean performLogin(JaasSessionId sessionHandle, int loginModuleIndex, Callback[] results) throws LoginException
LoginException
public boolean performCommit(JaasSessionId sessionHandle, int loginModuleIndex) throws LoginException
LoginException
public Principal loginSucceeded(JaasSessionId sessionHandle) throws LoginException
sessionHandle
- the handle to the login session
LoginException
- if the handle is no longer valid.public void loginFailed(JaasSessionId sessionHandle)
public void logout(JaasSessionId sessionHandle) throws LoginException
LoginException
public Map syncShareState(JaasSessionId sessionHandle, Map sharedState) throws LoginException
sessionHandle
- sharedState
- the shared state that is on the client
LoginException
public Set syncPrincipals(JaasSessionId sessionHandle, Set principals) throws LoginException
sessionHandle
- principals
- the set of principals that are on the client side
LoginException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |