public class JpsSecurityContext extends SecurityContextImpl implements SecurityContext
| Modifier and Type | Field and Description |
|---|---|
protected JpsServices |
_jpsServices |
protected java.lang.String |
_namespace |
_adfSecLogger, _adfShowPrincipalsLogger, _isJEE, ADF_SECURITY_SHOW_PRINCIPALS_LOGGER_NAME, mEnv, mNamedContext, mNames, mPermissionState| Constructor and Description |
|---|
JpsSecurityContext()
Internal: Applications should not use this method.
|
JpsSecurityContext(java.util.Map env) |
| Modifier and Type | Method and Description |
|---|---|
java.security.Permission |
createPermissionInstance(java.util.Hashtable values)
Create a FunctionPermission, DataPermission or Permission.
|
javax.security.auth.Subject |
getSubject()
Retrieves the subject in the SecurityContext or AccessController context.
|
java.security.Principal |
getUserPrincipal()
Internal: Applications should not use this method.
|
UserProfile |
getUserProfile()
Internal: Applications should not use this method.
|
protected java.lang.String |
internalGetPolicyContextId() |
protected boolean |
internalHasPermission(java.security.Permission permission) |
protected void |
internalSetPolicyContextId(java.lang.String appId) |
boolean |
isAnyoneEnabled()
Internal: Applications should not use this class.
True if anyone role is enable
|
boolean |
isAuthenticated()
True if authenticated
|
boolean |
isUserInRole(java.lang.String roleName)
True if user is in the specified role
|
addToEnvironment, attachToLightweightSession, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, detachFromLightweightSession, getAttachedLightweightSession, getEnvironment, getNameInNamespace, getNameParser, getNameParser, getPermissionState, getUserName, getUserRoles, hasPermission, internalGet, internalGetAuthenticated, internalSetAuthenticated, isAuthenticationEnabled, isAuthorizationEnabled, isPageSecurityMetadataEnabled, isReAuthenticated, isXSMode, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, setPermissionState, setPrincipal, showPrincipals, unbind, unbindentrySet, equals, get, hashCodeclear, clone, containsKey, containsValue, isEmpty, keySet, put, putAll, remove, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitattachToLightweightSession, detachFromLightweightSession, getAttachedLightweightSession, getPermissionState, getUserName, getUserRoles, hasPermission, isAuthenticationEnabled, isAuthorizationEnabled, isPageSecurityMetadataEnabled, isReAuthenticated, isXSMode, setPermissionStateaddToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbindprotected JpsServices _jpsServices
protected java.lang.String _namespace
public JpsSecurityContext()
public JpsSecurityContext(java.util.Map env)
public UserProfile getUserProfile()
getUserProfile in interface SecurityContextgetUserProfile in class SecurityContextImplpublic java.security.Principal getUserPrincipal()
SecurityContextImplgetUserPrincipal in interface SecurityContextgetUserPrincipal in class SecurityContextImplpublic boolean isAnyoneEnabled()
SecurityContextisAnyoneEnabled in interface SecurityContextisAnyoneEnabled in class SecurityContextImpltrue if authorization check should be performed.public boolean isAuthenticated()
SecurityContextisAuthenticated in interface SecurityContextisAuthenticated in class SecurityContextImpltrue if there is an authenticated user.protected boolean internalHasPermission(java.security.Permission permission)
internalHasPermission in class SecurityContextImplpublic java.security.Permission createPermissionInstance(java.util.Hashtable values)
SecurityContextcreatePermissionInstance in interface SecurityContextcreatePermissionInstance in class SecurityContextImplpublic javax.security.auth.Subject getSubject()
SecurityContextgetSubject in interface SecurityContextgetSubject in class SecurityContextImplpublic boolean isUserInRole(java.lang.String roleName)
SecurityContextisUserInRole in interface SecurityContextisUserInRole in class SecurityContextImpltrue if current user in the role.protected java.lang.String internalGetPolicyContextId()
internalGetPolicyContextId in class SecurityContextImplprotected void internalSetPolicyContextId(java.lang.String appId)
internalSetPolicyContextId in class SecurityContextImpl