public class SecurityUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALLOWDFLTLOGIN |
static java.lang.String |
APIKEYLOGIN |
Constructor and Description |
---|
SecurityUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanTenantUserInfo() |
static void |
clearTenantCodeContext() |
static void |
disconnectUser(UserInfo userInfo) |
static UserInfo |
getNewUserInfo() |
static UserInfo |
getNewUserInfo(java.lang.String loginid) |
static UserInfo |
getNewUserInfo(java.lang.String[] loginDet) |
static UserInfo |
getNewUserInfo(java.lang.String[] loginid,
java.lang.String password) |
static UserInfo |
getNewUserInfo(java.lang.String loginid,
java.lang.String password) |
static UserInfo |
getNewUserInfoWithTenantID(java.lang.String[] loginDet) |
static java.lang.String |
getTenantCodeContext() |
static UserInfo |
getUserInfo() |
static UserInfo |
getUserInfo(java.lang.String loginid,
java.lang.String password,
java.security.Principal principal) |
static UserInfo |
getUserInfoFromApiKey(java.lang.String apikey) |
static void |
invalidateSSOSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static boolean |
isAllowDefaultLogin() |
static boolean |
isDisconnectUser() |
static void |
setTenantCodeContext(java.lang.String tenantCode) |
static void |
setTenantUserInfo(UserInfo userInfo) |
public static final java.lang.String ALLOWDFLTLOGIN
public static final java.lang.String APIKEYLOGIN
public static void setTenantUserInfo(UserInfo userInfo)
public static void cleanTenantUserInfo()
public static void setTenantCodeContext(java.lang.String tenantCode)
public static void clearTenantCodeContext()
public static java.lang.String getTenantCodeContext()
public static UserInfo getUserInfo(java.lang.String loginid, java.lang.String password, java.security.Principal principal) throws MXException
MXException
public static UserInfo getUserInfoFromApiKey(java.lang.String apikey) throws MXException
MXException
public static boolean isAllowDefaultLogin() throws MXException
MXException
public static UserInfo getUserInfo() throws MXException
MXException
public static UserInfo getNewUserInfo() throws MXException
MXException
public static UserInfo getNewUserInfo(java.lang.String loginid, java.lang.String password) throws MXException
MXException
public static UserInfo getNewUserInfo(java.lang.String[] loginid, java.lang.String password) throws MXException
MXException
public static void disconnectUser(UserInfo userInfo) throws MXException
MXException
public static boolean isDisconnectUser() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static UserInfo getNewUserInfo(java.lang.String loginid) throws MXException
MXException
public static UserInfo getNewUserInfo(java.lang.String[] loginDet) throws MXException
MXException
public static UserInfo getNewUserInfoWithTenantID(java.lang.String[] loginDet) throws MXException
MXException
public static void invalidateSSOSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)