/**
* This file is auto generated from JavaDoc. Do not modify it manually.
*/
import type { Map } from "../../types/java/util/Map";
import type { String } from "../../types/java/lang/String";
/**
*
* Authentication utility interface.
*
*
*
* An instance of the Sitevision class implementing this interface can be obtained via
* {@link senselogic.sitevision.api.Utils#getAuthenticationUtil()}.
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the Utils interface.
*
* @author Mikael Wikblom
* @since Sitevision 2.6.1_03, Sitevision 2.7_01
*/
export interface AuthenticationUtil {
/**
* Logout current user based on a HttpServletRequest.
* @param aServletRequest the current servlet request
* @param invalidateHttpSession whether or not the session should be invalidated. This is normally not the case
*/
logout(aServletRequest: unknown, invalidateHttpSession: boolean): void;
/**
* Logout current user based on a PortletRequest.
* @param aPortletRequest the current portlet request
* @param invalidateHttpSession whether or not the session should be invalidated. This is normally not the case
*/
logout(aPortletRequest: unknown, invalidateHttpSession: boolean): void;
/**
* Authenticates a user based on a shared state map.
* @param aServletRequest the current servlet request
* @param sharedState a map containing "javax.security.auth.login.name" and "javax.security.auth.login.password"
* @throws LoginException if login fails
* @since Sitevision 2.6.2_06
*/
login(aServletRequest: unknown, sharedState: Map | {}): void;
/**
* Authenticates a user based on username and password.
* @param aServletRequest the current servlet request
* @param name a username
* @param password a password
* @throws LoginException if login fails
* @since Sitevision 2.6.2_06
*/
login(
aServletRequest: unknown,
name: String | string,
password: String | string
): void;
/**
* Re-authenticates a user based on a Subject already in the session.
* @param aServletRequest the current servlet request
* @throws LoginException if login fails
* @since Sitevision 2.6.2_06
*/
reLogin(aServletRequest: unknown): void;
/**
* Authenticates a user based on a shared state map.
* @param aPortletRequest the current portlet request
* @param sharedState a map containing "javax.security.auth.login.name" and "javax.security.auth.login.password"
* @throws LoginException if login fails
* @since Sitevision 2.6.2_06
*/
login(aPortletRequest: unknown, sharedState: Map | {}): void;
/**
* Authenticates a user based on username and password.
* @param aPortletRequest the current portlet request
* @param name a username
* @param password a password
* @throws LoginException if login fails
* @since Sitevision 2.6.2_06
*/
login(
aPortletRequest: unknown,
name: String | string,
password: String | string
): void;
/**
* Re-authenticates a user based on a Subject already in the session.
* @param aPortletRequest the current portlet request
* @throws LoginException if login fails
* @since Sitevision 2.6.2_06
*/
reLogin(aPortletRequest: unknown): void;
}
declare namespace AuthenticationUtil {}
declare var authenticationUtil: AuthenticationUtil;
export default authenticationUtil;