|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides interface for the authentication services.
This interface should be implemented by services which can do the real authentication, i.e. they are able to login and logout the given subject by checking its username, password, or any other security credentials against the user database. Sometimes they are called also authentication adapters.
Method Summary | |
AuthId |
login(java.lang.String facility,
javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler)
Authenticates the subject. |
void |
logout(java.lang.String facility,
AuthId id,
javax.security.auth.Subject subject)
Logouts the subject. |
Method Detail |
public AuthId login(java.lang.String facility, javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler) throws javax.security.auth.login.LoginException
The AuthId
object relates the login and logout operations, thus enabling
multiple authentication of a single subject.
facility
- the authentication facilitysubject
- the subject to log inhandler
- the callback handler
javax.security.auth.login.LoginException
- if the login operation failspublic void logout(java.lang.String facility, AuthId id, javax.security.auth.Subject subject) throws javax.security.auth.login.LoginException
The AuthId
object must reference the previous login operation used to authenticate
the subject.
facility
- the authentication facilityid
- the authentication identifiersubject
- the subject to log out
javax.security.auth.login.LoginException
- if the logout operation fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |