public class ADFBaseSecurityContext extends SecurityContextImpl
_adfSecLogger, _adfShowPrincipalsLogger, _isJEE, ADF_SECURITY_SHOW_PRINCIPALS_LOGGER_NAME, mEnv, mNamedContext, mNames, mPermissionState, USERASSERTION_SUBJECT| Constructor and Description |
|---|
ADFBaseSecurityContext(java.util.Map map) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createSubject(java.lang.String userId,
java.util.Map<java.lang.String,java.lang.String> userProps,
java.util.List<java.lang.String> roleList) |
javax.security.auth.Subject |
getSubject()
Retrieves the subject in the SecurityContext or AccessController context.
|
java.lang.String |
getUserName()
Internal: Applications should not use this method.
|
java.security.Principal |
getUserPrincipal()
Internal: Applications should not use this method.
|
UserProfile |
getUserProfile()
Internal: Applications should not use this method.
|
boolean |
hasPermission(java.security.Permission permission)
Internal: Applications should not use this method.
|
boolean |
isAuthenticated()
True if authenticated
|
boolean |
isReAuthenticated(long time)
True if re-authenticated since last time
|
boolean |
isUserInRole(java.lang.String roleName)
True if user is in the specified role
|
protected void |
setPrincipal(java.lang.Object principal) |
addToEnvironment, attachToLightweightSession, bind, bind, close, composeName, composeName, createPermissionInstance, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, detachFromLightweightSession, getAttachedLightweightSession, getAuthorizationPrincipal, getAuthorizationSubject, getEnvironment, getNameInNamespace, getNameParser, getNameParser, getPermissionState, getUserRoles, internalGet, internalGetAuthenticated, internalGetPolicyContextId, internalHasPermission, internalSetAuthenticated, internalSetPolicyContextId, isAnyoneEnabled, isAuthenticationEnabled, isAuthorizationEnabled, isPageSecurityMetadataEnabled, isUserAssertion, isXSMode, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, setAuthorizationSubject, setPermissionState, setUserAssertion, showPrincipals, unbind, unbindentrySet, equals, get, hashCodeclear, clone, containsKey, containsValue, isEmpty, keySet, put, putAll, remove, size, toString, valuesprotected void createSubject(java.lang.String userId,
java.util.Map<java.lang.String,java.lang.String> userProps,
java.util.List<java.lang.String> roleList)
protected void setPrincipal(java.lang.Object principal)
setPrincipal in class SecurityContextImplpublic boolean isUserInRole(java.lang.String roleName)
SecurityContextisUserInRole in interface SecurityContextisUserInRole in class SecurityContextImpltrue if current user in the role.public javax.security.auth.Subject getSubject()
SecurityContextgetSubject in interface SecurityContextgetSubject in class SecurityContextImplpublic boolean isAuthenticated()
SecurityContextisAuthenticated in interface SecurityContextisAuthenticated in class SecurityContextImpltrue if there is an authenticated user.public boolean isReAuthenticated(long time)
SecurityContextisReAuthenticated in interface SecurityContextisReAuthenticated in class SecurityContextImplpublic java.security.Principal getUserPrincipal()
SecurityContextImplgetUserPrincipal in interface SecurityContextgetUserPrincipal in class SecurityContextImplpublic java.lang.String getUserName()
SecurityContextImplgetUserName in interface SecurityContextgetUserName in class SecurityContextImplpublic boolean hasPermission(java.security.Permission permission)
SecurityContextImplhasPermission in interface SecurityContexthasPermission in class SecurityContextImplpermission - the permission to be checkedtrue if the principal has the specified permission.public UserProfile getUserProfile()
SecurityContextImplgetUserProfile in interface SecurityContextgetUserProfile in class SecurityContextImpl