|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthenticationService
Interface AuthenticationService encapsulates common methods to perform a login.
A AuthenticationService is responsible to create AuthenticationContext instances and perform logins and logouts.
Method Summary | |
---|---|
AuthenticationContext |
createAuthenticationContext()
Method creates a new AuthenticationContext. |
AuthenticationContext |
login()
Method performs a "anonymous" login. |
AuthenticationContext |
login(javax.security.auth.callback.CallbackHandler handler)
Method performs a login. |
AuthenticationContext |
login(javax.security.auth.callback.CallbackHandler handler,
AuthenticationContext ctx)
Method performs a login with a given authentication context. |
AuthenticationContext |
logout(AuthenticationContext ctx)
Method performs a logout. |
Method Detail |
---|
AuthenticationContext createAuthenticationContext()
not authenticated
and contain an empty Subject.
AuthenticationContext login() throws AuthenticationException
AuthenticationException
- if error occurs.AuthenticationContext login(javax.security.auth.callback.CallbackHandler handler) throws AuthenticationException
handler
- the handler.
AuthenticationException
- if error occurs.AuthenticationContext login(javax.security.auth.callback.CallbackHandler handler, AuthenticationContext ctx) throws AuthenticationException
handler
- the handler.ctx
- the ctx.
AuthenticationException
- if error occurs.AuthenticationContext logout(AuthenticationContext ctx) throws AuthenticationException
ctx
- the ctx.
AuthenticationException
- if error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |