|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.security.AuthContext
org.apache.jackrabbit.core.security.AuthContext.JAAS
public static class AuthContext.JAAS
An AuthContext
implemented using a regular JAAS LoginContext
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.security.AuthContext |
---|
AuthContext.JAAS, AuthContext.Local |
Constructor Summary | |
---|---|
AuthContext.JAAS(String name,
Credentials creds)
Creates an authentication context given a JAAS configuration name and some credentials. |
Method Summary | |
---|---|
Subject |
getSubject()
Return the authenticated Subject. |
void |
login()
Perform the authentication and, if successful, associate Principals and Credentials with the authenticated Subject . |
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.JAAS(String name, Credentials creds) throws LoginException
name
- the JAAS configuration indexcreds
- the credentials
LoginException
- if the JAAS context couldn't be createdMethod Detail |
---|
public void login() throws LoginException
Subject
.
login
in class AuthContext
LoginException
- if the authentication fails.LoginContext.login()
public Subject getSubject()
getSubject
in class AuthContext
null
if authentication failed.LoginContext.getSubject()
public void logout() throws LoginException
Subject
.
logout
in class AuthContext
LoginException
- if the logout fails.LoginContext.logout()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |