|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Application
Handles authentication with the backend system.
OAuthConfiguration#setApplication(Authentication)| Method Summary | |
|---|---|
String |
getName()
Gets the name of the application to show in the login dialog. |
String |
getRealm(javax.servlet.http.HttpServletRequest request)
Gets the realm to be included in OAuth problem responses. |
boolean |
isAdminSession(javax.servlet.http.HttpServletRequest request)
Determines if the current session is an admin session. |
boolean |
isAuthenticated(javax.servlet.http.HttpServletRequest request)
Determines if the user is already authenticated with the application. |
void |
login(javax.servlet.http.HttpServletRequest request,
String id,
String password)
Authenticates with the application. |
| Method Detail |
|---|
String getName()
void login(javax.servlet.http.HttpServletRequest request,
String id,
String password)
throws AuthenticationException
AuthenticationException.
request - the servlet requestid - the user's IDpassword - the user's password
AuthenticationException - if authentication failsboolean isAuthenticated(javax.servlet.http.HttpServletRequest request)
request - the servlet request
boolean isAdminSession(javax.servlet.http.HttpServletRequest request)
request - the HTTP request
String getRealm(javax.servlet.http.HttpServletRequest request)
request - the HTTP request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||