|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PortalAuthentication
interface defines contract between
the portal and security provider required for authentication a Jetspeed User.
This interface enables an application to be independent of the underlying
authentication technology.
If the login
method returns without
throwing an exception, then the overall authentication succeeded.
To logout the caller simply needs to invoke the logout
method.
Field Summary | |
static java.lang.String |
SERVICE_NAME
|
Method Summary | |
JetspeedUser |
getAnonymousUser()
Automatically authenticates and retrieves the portal anonymous user. |
JetspeedUser |
login(java.lang.String username,
java.lang.String password)
Given a public credential(username) and private credential(password), perform authentication. |
void |
logout()
Logout the JetspeedUser . |
Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, init, setInitableBroker, shutdown |
Field Detail |
public static final java.lang.String SERVICE_NAME
Method Detail |
public 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 JetspeedUser getAnonymousUser() throws LoginException
JetspeedUser
object representing the authenticated subject.
LoginException
- if the authentication fails.public 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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |