public interface Application
OAuthConfiguration#setApplication(Authentication)
Modifier and Type | Method and Description |
---|---|
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.
|
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 passwordAuthenticationException
- if authentication failsboolean isAuthenticated(javax.servlet.http.HttpServletRequest request)
request
- the servlet requestboolean isAdminSession(javax.servlet.http.HttpServletRequest request)
request
- the HTTP requestString getRealm(javax.servlet.http.HttpServletRequest request)
request
- the HTTP requestCopyright © 2018. All Rights Reserved.