public abstract class AuthInfo extends HashMap<String,Object> implements IAuthInfo, IPrincipalData, Serializable, Cloneable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
static String |
ANONYMOUS_AUTH_TYPE
Deprecated.
use
IAuthInfo.ANONYMOUS_AUTH_TYPE instead |
static String |
IDSUSER
Deprecated.
use
IAuthInfo.IDSUSER instead |
static String |
PORTAL_USER
Deprecated.
use
IAuthInfo.PORTAL_USER instead |
static String |
REMOTEADDR
Deprecated.
use
IAuthInfo.REMOTEADDR instead |
static String |
SESSION_ID
Deprecated.
use
IAuthInfo.SESSION_ID instead |
static String |
SSO_CAPABLE
Deprecated.
use
IAuthInfo.SSO_CAPABLE instead |
static String |
UNKNOWN_TYPE
Deprecated.
use
IAuthInfo.UNKNOWN_TYPE instead |
static String |
USERS
Deprecated.
use
IAuthInfo.USERS instead |
ID
Modifier | Constructor and Description |
---|---|
protected |
AuthInfo(int initialAuthSize) |
Modifier and Type | Method and Description |
---|---|
static AuthInfo |
getAuthInfo(HttpSession session)
Helper function to retrieve the authorization information for the current session
|
static IThingID |
getUserID(HttpSession session)
Convience method to get the user id.
|
static boolean |
isAdminSession(HttpSession session)
Helper function to determine if the given session is an Admin session
|
static boolean |
isGuestSession(HttpSession session)
Helper function to determine if the given session is a Guest session
|
static boolean |
isSessionValid(HttpSession session)
Determines if a given session is valid.
|
static void |
setAuthInfo(HttpSession session,
IAuthInfo authInfo)
Helper function to set the AuthInfo information on the given session
|
String |
toString() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode
finalize, getClass, notify, notifyAll, wait, wait, wait
copy, getAuthType, getRemoteAddr, getSessionID, getSessionState, setAuthType, setRemoteAddr, setSessionID
getDN, getDomain, getDomainUserName, getPassword, getUri, getUserDirectoryURI, getUserID, getUserName, isAdminSession, isAnonymous, isAuthenticated, isLoginSession, isPrivilegedInfo, setAuthentication, setDN, setDomain, setInfo, setIsAdminSession, setIsAnonymous, setIsLoginSession, setIsPrivilegedInfo, setUri, setUserID, setUserName
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
@Deprecated public static final String UNKNOWN_TYPE
IAuthInfo.UNKNOWN_TYPE
instead@Deprecated public static final String USERS
IAuthInfo.USERS
instead@Deprecated public static final String IDSUSER
IAuthInfo.IDSUSER
instead@Deprecated public static final String REMOTEADDR
IAuthInfo.REMOTEADDR
instead@Deprecated public static final String SESSION_ID
IAuthInfo.SESSION_ID
instead@Deprecated public static final String PORTAL_USER
IAuthInfo.PORTAL_USER
instead@Deprecated public static final String ANONYMOUS_AUTH_TYPE
IAuthInfo.ANONYMOUS_AUTH_TYPE
instead@Deprecated public static final String SSO_CAPABLE
IAuthInfo.SSO_CAPABLE
insteadpublic static AuthInfo getAuthInfo(HttpSession session)
session
- the HttpSession to retrieve the AuthInfo fromsetAuthInfo(javax.servlet.http.HttpSession, com.webmethods.portal.framework.auth.IAuthInfo)
public static void setAuthInfo(HttpSession session, IAuthInfo authInfo)
session
- the HttpSession to set the AuthInfo ontoauthInfo
- the AuthInfo object to setgetAuthInfo(javax.servlet.http.HttpSession)
public static boolean isAdminSession(HttpSession session)
session
- the HttpSession to examinepublic static boolean isGuestSession(HttpSession session)
session
- the HttpSession to examinepublic static boolean isSessionValid(HttpSession session)
isAuthValidated ()
option set to truesession
- the HttpSession to validatepublic static IThingID getUserID(HttpSession session)
session
- is the current HttpSession containing the authinfo objectpublic String toString()
toString
in class AbstractMap<String,Object>