Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.1.0)

E17486-02

oracle.adf.share.security.providers.jps
Class JpsSecurityContext

java.lang.Object
  extended by java.util.AbstractMap
      extended by oracle.adf.share.security.SecurityContextMap
          extended by oracle.adf.share.security.SecurityContextImpl
              extended by oracle.adf.share.security.providers.jps.JpsSecurityContext
All Implemented Interfaces:
java.util.Map, javax.naming.Context, SecurityContext

public class JpsSecurityContext
extends SecurityContextImpl
implements SecurityContext

Internal: Applications should not use this class.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
protected  JpsServices _jpsServices
           
protected  java.lang.String _namespace
           
 
Fields inherited from class oracle.adf.share.security.SecurityContextImpl
_adfSecLogger, _adfShowPrincipalsLogger, _isJEE, ADF_SECURITY_SHOW_PRINCIPALS_LOGGER_NAME, mEnv, mNamedContext, mNames, mPermissionState
 
Fields inherited from interface javax.naming.Context
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
 
Constructor Summary
JpsSecurityContext()
          Internal: Applications should not use this method.
JpsSecurityContext(java.util.Map env)
           
 
Method Summary
 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  boolean internalHasPermission(java.security.Permission permission)
           
 boolean isAnyoneEnabled()
          Internal: Applications should not use this class. True if anyone role is enable
 boolean isAuthenticated()
          True if authenticated
 
Methods inherited from class oracle.adf.share.security.SecurityContextImpl
addToEnvironment, attachToLightweightSession, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, detachFromLightweightSession, getAttachedLightweightSession, getEnvironment, getNameInNamespace, getNameParser, getNameParser, getPermissionState, getUserName, getUserRoles, hasPermission, internalGet, isAuthenticationEnabled, isAuthorizationEnabled, isPageSecurityMetadataEnabled, isReAuthenticated, isUserInRole, isXSMode, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, setPermissionState, setPrincipal, showPrincipals, unbind, unbind
 
Methods inherited from class oracle.adf.share.security.SecurityContextMap
entrySet, equals, get, hashCode
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.adf.share.security.SecurityContext
attachToLightweightSession, detachFromLightweightSession, getAttachedLightweightSession, getPermissionState, getUserName, getUserRoles, hasPermission, isAuthenticationEnabled, isAuthorizationEnabled, isPageSecurityMetadataEnabled, isReAuthenticated, isUserInRole, isXSMode, setPermissionState
 
Methods inherited from interface javax.naming.Context
addToEnvironment, 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, unbind
 

Field Detail

_jpsServices

protected JpsServices _jpsServices

_namespace

protected java.lang.String _namespace
Constructor Detail

JpsSecurityContext

public JpsSecurityContext()
Internal: Applications should not use this method.


JpsSecurityContext

public JpsSecurityContext(java.util.Map env)
Method Detail

getUserProfile

public UserProfile getUserProfile()
Internal: Applications should not use this method.

Specified by:
getUserProfile in interface SecurityContext
Overrides:
getUserProfile in class SecurityContextImpl
Returns:
the user profile object

getUserPrincipal

public java.security.Principal getUserPrincipal()
Description copied from class: SecurityContextImpl
Internal: Applications should not use this method.

Specified by:
getUserPrincipal in interface SecurityContext
Overrides:
getUserPrincipal in class SecurityContextImpl
Returns:
the user principal

isAnyoneEnabled

public boolean isAnyoneEnabled()
Description copied from interface: SecurityContext
Internal: Applications should not use this class. True if anyone role is enable

Specified by:
isAnyoneEnabled in interface SecurityContext
Overrides:
isAnyoneEnabled in class SecurityContextImpl
Returns:
true if authorization check should be performed.

isAuthenticated

public boolean isAuthenticated()
Description copied from interface: SecurityContext
True if authenticated

Specified by:
isAuthenticated in interface SecurityContext
Overrides:
isAuthenticated in class SecurityContextImpl
Returns:
true if there is an authenticated user.

internalHasPermission

protected boolean internalHasPermission(java.security.Permission permission)
Overrides:
internalHasPermission in class SecurityContextImpl

createPermissionInstance

public java.security.Permission createPermissionInstance(java.util.Hashtable values)
Description copied from interface: SecurityContext
Create a FunctionPermission, DataPermission or Permission. The hashtable specfied the permission types, privilge name and namespace.

Specified by:
createPermissionInstance in interface SecurityContext
Overrides:
createPermissionInstance in class SecurityContextImpl
Returns:
a permission instance

getSubject

public javax.security.auth.Subject getSubject()
Description copied from interface: SecurityContext
Retrieves the subject in the SecurityContext or AccessController context.

Specified by:
getSubject in interface SecurityContext
Overrides:
getSubject in class SecurityContextImpl
Returns:
the current Subject

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.1.0)

E17486-02

Copyright © 1997, 2011, Oracle. All rights reserved.