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, unbind
entrySet, equals, get, hashCode
clear, clone, containsKey, containsValue, isEmpty, keySet, put, putAll, remove, size, toString, values
protected 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 SecurityContextImpl
public boolean isUserInRole(java.lang.String roleName)
SecurityContext
isUserInRole
in interface SecurityContext
isUserInRole
in class SecurityContextImpl
true
if current user in the role.public javax.security.auth.Subject getSubject()
SecurityContext
getSubject
in interface SecurityContext
getSubject
in class SecurityContextImpl
public boolean isAuthenticated()
SecurityContext
isAuthenticated
in interface SecurityContext
isAuthenticated
in class SecurityContextImpl
true
if there is an authenticated user.public boolean isReAuthenticated(long time)
SecurityContext
isReAuthenticated
in interface SecurityContext
isReAuthenticated
in class SecurityContextImpl
public java.security.Principal getUserPrincipal()
SecurityContextImpl
getUserPrincipal
in interface SecurityContext
getUserPrincipal
in class SecurityContextImpl
public java.lang.String getUserName()
SecurityContextImpl
getUserName
in interface SecurityContext
getUserName
in class SecurityContextImpl
public boolean hasPermission(java.security.Permission permission)
SecurityContextImpl
hasPermission
in interface SecurityContext
hasPermission
in class SecurityContextImpl
permission
- the permission to be checkedtrue
if the principal has the specified permission.public UserProfile getUserProfile()
SecurityContextImpl
getUserProfile
in interface SecurityContext
getUserProfile
in class SecurityContextImpl