|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.services.JetspeedAuthentication
Static accessor for the JetspeedAuthentication service
Constructor Summary | |
JetspeedAuthentication()
|
Method Summary | |
static JetspeedUser |
getAnonymousUser()
Automatically authenticates and retrieves the portal anonymous user. |
protected static PortalAuthentication |
getService()
|
static JetspeedUser |
login(java.lang.String username,
java.lang.String password)
Given a public credential(username) and private credential(password), perform authentication. |
static void |
logout()
Logout the JetspeedUser . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JetspeedAuthentication()
Method Detail |
public static JetspeedUser login(java.lang.String username, java.lang.String password) throws LoginException
JetspeedUser
is returned representing the authenticated subject.
username
- a public credential of the subject to be authenticated.password
- a private credentialof the subject to be authenticated.
JetspeedUser
object representing the authenticated subject.
LoginException
- when general security provider failure.
FailedLoginException
- when the authentication failed.
AccountExpiredException
- when the subject's account is expired.
CredentialExpiredException
- when the subject's credential is expired.public static JetspeedUser getAnonymousUser() throws LoginException
JetspeedUser
object representing the authenticated subject.
LoginException
- if the authentication fails.public static void logout() throws LoginException
JetspeedUser
.
The logout procedure my may include removing/destroying
Principal
and Credential
information
if relevant to the security provider.
LoginException
- if the logout fails.protected static PortalAuthentication getService()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |