|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.security.AuthContext
public abstract class AuthContext
An authentication context used to authenticate users. It is similar to JAAS' LoginContext
but can work in a non-JAAS environment.
This class is abstract and has two implementations:
AuthContext.JAAS which delegates to a regular JAAS LoginContextAuthContext.Local which implements authentication using a locally-defined
JAAS LoginModule
| Nested Class Summary | |
|---|---|
static class |
AuthContext.JAAS
An AuthContext implemented using a regular JAAS LoginContext. |
static class |
AuthContext.Local
An AuthContext implemented using a particular LoginModule. |
| Constructor Summary | |
|---|---|
AuthContext()
|
|
| Method Summary | |
|---|---|
abstract Subject |
getSubject()
Return the authenticated Subject. |
abstract void |
login()
Perform the authentication and, if successful, associate Principals and Credentials with the authenticated Subject. |
abstract void |
logout()
Logout the Subject. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthContext()
| Method Detail |
|---|
public abstract void login()
throws LoginException
Subject.
LoginException - if the authentication fails.LoginContext.login()public abstract Subject getSubject()
null if authentication failed.LoginContext.getSubject()
public abstract void logout()
throws LoginException
Subject.
LoginException - if the logout fails.LoginContext.logout()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||