Copyright© 2008-2022 Sitevision AB, all rights reserved.
@Requireable(value="AuthenticationUtil") public interface AuthenticationUtil
Authentication utility interface.
An instance of the Sitevision class implementing this interface can be obtained via
Utils.getAuthenticationUtil()
.
See Utils
for how to obtain an instance of the Utils
interface.
Modifier and Type | Method and Description |
---|---|
void |
login(HttpServletRequest aServletRequest,
Map<String,String> sharedState)
Authenticates a user based on a shared state map.
|
void |
login(HttpServletRequest aServletRequest,
String name,
String password)
Authenticates a user based on username and password.
|
void |
login(PortletRequest aPortletRequest,
Map<String,String> sharedState)
Authenticates a user based on a shared state map.
|
void |
login(PortletRequest aPortletRequest,
String name,
String password)
Authenticates a user based on username and password.
|
void |
logout(HttpServletRequest aServletRequest,
boolean invalidateHttpSession)
Logout current user based on a HttpServletRequest.
|
void |
logout(PortletRequest aPortletRequest,
boolean invalidateHttpSession)
Logout current user based on a PortletRequest.
|
void |
reLogin(HttpServletRequest aServletRequest)
Re-authenticates a user based on a Subject already in the session.
|
void |
reLogin(PortletRequest aPortletRequest)
Re-authenticates a user based on a Subject already in the session.
|
void logout(HttpServletRequest aServletRequest, boolean invalidateHttpSession)
aServletRequest
- the current servlet requestinvalidateHttpSession
- whether or not the session should be invalidated. This is normally not the casevoid logout(PortletRequest aPortletRequest, boolean invalidateHttpSession)
aPortletRequest
- the current portlet requestinvalidateHttpSession
- whether or not the session should be invalidated. This is normally not the casevoid login(HttpServletRequest aServletRequest, Map<String,String> sharedState) throws LoginException
aServletRequest
- the current servlet requestsharedState
- a map containing "javax.security.auth.login.name" and "javax.security.auth.login.password"LoginException
- if login failsvoid login(HttpServletRequest aServletRequest, String name, String password) throws LoginException
aServletRequest
- the current servlet requestname
- a usernamepassword
- a passwordLoginException
- if login failsvoid reLogin(HttpServletRequest aServletRequest) throws LoginException
aServletRequest
- the current servlet requestLoginException
- if login failsvoid login(PortletRequest aPortletRequest, Map<String,String> sharedState) throws LoginException
aPortletRequest
- the current portlet requestsharedState
- a map containing "javax.security.auth.login.name" and "javax.security.auth.login.password"LoginException
- if login failsvoid login(PortletRequest aPortletRequest, String name, String password) throws LoginException
aPortletRequest
- the current portlet requestname
- a usernamepassword
- a passwordLoginException
- if login failsvoid reLogin(PortletRequest aPortletRequest) throws LoginException
aPortletRequest
- the current portlet requestLoginException
- if login failsSitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.