|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityAuthenticator
A SecurityAuthenticator
allows to plugin custom authenticators,
such as JAAS based or custom implementations.
Method Summary | |
---|---|
String |
getName()
Gets the name of the realm. |
String |
getUserRoles(Subject subject)
Gets the user roles from the given Subject |
Subject |
login(HttpPrincipal principal)
Attempts to login the Principal on this realm. |
void |
logout(Subject subject)
Attempt to logout the subject. |
void |
setName(String name)
Sets the name of the realm to use. |
void |
setRoleClassNames(String names)
Sets the role class names (separated by comma) By default if no explicit role class names has been configured, then this implementation will assume the Subject Principal s is a role if the classname
contains the word role (lower cased). |
Method Detail |
---|
void setName(String name)
String getName()
void setRoleClassNames(String names)
Subject
Principal
s is a role if the classname
contains the word role (lower cased).
names
- a list of FQN class names for role Principal
implementations.Subject login(HttpPrincipal principal) throws LoginException
Principal
on this realm.
The login is a success if no Exception is thrown, and a Subject
is returned.
principal
- the principal
LoginException
- is thrown if error logging in the Principal
void logout(Subject subject) throws LoginException
subject
- subject to logout
LoginException
- is thrown if error logging out subjectString getUserRoles(Subject subject)
Subject
subject
- the subject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |