|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.4.0) E10686-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
oracle.adf.share.security.SecurityContextMap
oracle.adf.share.security.SecurityContextImpl
public class SecurityContextImpl
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 static ADFLogger |
_adfSecLogger
|
protected static ADFLogger |
_adfShowPrincipalsLogger
|
protected boolean |
_isJEE
|
static java.lang.String |
ADF_SECURITY_SHOW_PRINCIPALS_LOGGER_NAME
|
protected java.util.Hashtable |
mEnv
|
protected java.lang.String |
mNamedContext
|
protected java.util.Hashtable |
mNames
|
protected PermissionState |
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 | |
---|---|
SecurityContextImpl()
Internal: Applications should not use this method. |
|
SecurityContextImpl(java.util.Hashtable env)
Internal: Applications should not use this method. |
|
SecurityContextImpl(java.util.Map env)
|
Method Summary | |
---|---|
java.lang.Object |
addToEnvironment(java.lang.String propName,
java.lang.Object propVal)
|
boolean |
attachToLightweightSession(java.sql.Connection conn)
Attach connection to lightweight XS session |
void |
bind(javax.naming.Name name,
java.lang.Object obj)
|
void |
bind(java.lang.String name,
java.lang.Object obj)
|
void |
close()
|
javax.naming.Name |
composeName(javax.naming.Name name,
javax.naming.Name prefix)
|
java.lang.String |
composeName(java.lang.String name,
java.lang.String prefix)
|
java.security.Permission |
createPermissionInstance(java.util.Hashtable values)
Create a FunctionPermission, DataPermission or Permission. |
javax.naming.Context |
createSubcontext(javax.naming.Name name)
|
javax.naming.Context |
createSubcontext(java.lang.String name)
|
void |
destroySubcontext(javax.naming.Name name)
|
void |
destroySubcontext(java.lang.String name)
|
boolean |
detachFromLightweightSession()
Detach connection from lightweight XS session |
java.lang.Object |
getAttachedLightweightSession()
Return the attached lightweight XS session |
java.util.Hashtable |
getEnvironment()
|
java.lang.String |
getNameInNamespace()
|
javax.naming.NameParser |
getNameParser(javax.naming.Name name)
|
javax.naming.NameParser |
getNameParser(java.lang.String name)
|
PermissionState |
getPermissionState()
Internal: Applications should not use this method. Return the current active PermissionState |
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. |
java.lang.String[] |
getUserRoles()
A list of role names in the Subject |
boolean |
hasPermission(java.security.Permission permission)
Internal: Applications should not use this method. |
protected java.lang.Object |
internalGet(java.lang.String key)
|
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 |
boolean |
isAuthenticationEnabled()
True if authenticationRequired set |
boolean |
isAuthorizationEnabled()
Internal: Applications should not use this method. |
boolean |
isPageSecurityMetadataEnabled()
Internal: Applications should not use this method. True if page security metadata is enable. |
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 |
boolean |
isXSMode()
True is using DB Extensible Security (XS) |
javax.naming.NamingEnumeration |
list(javax.naming.Name name)
|
javax.naming.NamingEnumeration |
list(java.lang.String name)
|
javax.naming.NamingEnumeration |
listBindings(javax.naming.Name name)
|
javax.naming.NamingEnumeration |
listBindings(java.lang.String name)
|
java.lang.Object |
lookup(javax.naming.Name name)
|
java.lang.Object |
lookup(java.lang.String name)
|
java.lang.Object |
lookupLink(javax.naming.Name name)
|
java.lang.Object |
lookupLink(java.lang.String name)
|
void |
rebind(javax.naming.Name name,
java.lang.Object obj)
|
void |
rebind(java.lang.String name,
java.lang.Object obj)
|
java.lang.Object |
removeFromEnvironment(java.lang.String propName)
|
void |
rename(javax.naming.Name oldName,
javax.naming.Name newName)
|
void |
rename(java.lang.String oldName,
java.lang.String newName)
|
void |
setPermissionState(PermissionState permissionState)
Internal: Applications should not use this method. Set the PermissionState |
protected void |
setPrincipal(java.lang.Object principal)
|
protected void |
showPrincipals()
|
void |
unbind(javax.naming.Name name)
|
void |
unbind(java.lang.String name)
|
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 |
Field Detail |
---|
protected static ADFLogger _adfSecLogger
public static final java.lang.String ADF_SECURITY_SHOW_PRINCIPALS_LOGGER_NAME
protected static ADFLogger _adfShowPrincipalsLogger
protected java.util.Hashtable mEnv
protected java.util.Hashtable mNames
protected java.lang.String mNamedContext
protected PermissionState mPermissionState
protected boolean _isJEE
Constructor Detail |
---|
public SecurityContextImpl()
public SecurityContextImpl(java.util.Map env)
public SecurityContextImpl(java.util.Hashtable env)
Method Detail |
---|
public java.security.Principal getUserPrincipal()
getUserPrincipal
in interface SecurityContext
public UserProfile getUserProfile()
getUserProfile
in interface SecurityContext
public java.lang.String getUserName()
getUserName
in interface SecurityContext
public boolean isAuthorizationEnabled()
isAuthorizationEnabled
in interface SecurityContext
true
if authorization check should be performed.public boolean isAuthenticationEnabled()
SecurityContext
isAuthenticationEnabled
in interface SecurityContext
true
if authentication require flag set
to be enforced by security constraints.public boolean hasPermission(java.security.Permission permission)
hasPermission
in interface SecurityContext
permission
- the permission to be checked
true
if the principal has the specified permission.protected boolean internalHasPermission(java.security.Permission permission)
public PermissionState getPermissionState()
getPermissionState
in interface SecurityContext
public void setPermissionState(PermissionState permissionState)
setPermissionState
in interface SecurityContext
permissionState
- the active permission statepublic boolean isPageSecurityMetadataEnabled()
isPageSecurityMetadataEnabled
in interface SecurityContext
public javax.naming.NamingEnumeration list(java.lang.String name) throws javax.naming.NamingException
list
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration list(javax.naming.Name name) throws javax.naming.NamingException
list
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration listBindings(java.lang.String name) throws javax.naming.NamingException
listBindings
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration listBindings(javax.naming.Name name) throws javax.naming.NamingException
listBindings
in interface javax.naming.Context
javax.naming.NamingException
public void rename(java.lang.String oldName, java.lang.String newName) throws javax.naming.NamingException
rename
in interface javax.naming.Context
javax.naming.NamingException
public void rename(javax.naming.Name oldName, javax.naming.Name newName) throws javax.naming.NamingException
rename
in interface javax.naming.Context
javax.naming.NamingException
public void bind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
bind
in interface javax.naming.Context
javax.naming.NamingException
public void bind(javax.naming.Name name, java.lang.Object obj) throws javax.naming.NamingException
bind
in interface javax.naming.Context
javax.naming.NamingException
public void rebind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
rebind
in interface javax.naming.Context
javax.naming.NamingException
public void rebind(javax.naming.Name name, java.lang.Object obj) throws javax.naming.NamingException
rebind
in interface javax.naming.Context
javax.naming.NamingException
public void destroySubcontext(java.lang.String name) throws javax.naming.NamingException
destroySubcontext
in interface javax.naming.Context
javax.naming.NamingException
public void destroySubcontext(javax.naming.Name name) throws javax.naming.NamingException
destroySubcontext
in interface javax.naming.Context
javax.naming.NamingException
public void unbind(java.lang.String name) throws javax.naming.NamingException
unbind
in interface javax.naming.Context
javax.naming.NamingException
public void unbind(javax.naming.Name name) throws javax.naming.NamingException
unbind
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.Context createSubcontext(java.lang.String name) throws javax.naming.NamingException
createSubcontext
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.Context createSubcontext(javax.naming.Name name) throws javax.naming.NamingException
createSubcontext
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object lookup(java.lang.String name) throws javax.naming.NamingException
lookup
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object lookup(javax.naming.Name name) throws javax.naming.NamingException
lookup
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object lookupLink(java.lang.String name) throws javax.naming.NamingException
lookupLink
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object lookupLink(javax.naming.Name name) throws javax.naming.NamingException
lookupLink
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NameParser getNameParser(java.lang.String name) throws javax.naming.NamingException
getNameParser
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NameParser getNameParser(javax.naming.Name name) throws javax.naming.NamingException
getNameParser
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.Name composeName(javax.naming.Name name, javax.naming.Name prefix) throws javax.naming.NamingException
composeName
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.String composeName(java.lang.String name, java.lang.String prefix) throws javax.naming.NamingException
composeName
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object addToEnvironment(java.lang.String propName, java.lang.Object propVal) throws javax.naming.NamingException
addToEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object removeFromEnvironment(java.lang.String propName) throws javax.naming.NamingException
removeFromEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public java.util.Hashtable getEnvironment() throws javax.naming.NamingException
getEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public void close() throws javax.naming.NamingException
close
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.String getNameInNamespace() throws javax.naming.NamingException
getNameInNamespace
in interface javax.naming.Context
javax.naming.NamingException
protected void setPrincipal(java.lang.Object principal)
public boolean isAuthenticated()
SecurityContext
isAuthenticated
in interface SecurityContext
true
if there is an authenticated user.public boolean isUserInRole(java.lang.String roleName)
SecurityContext
isUserInRole
in interface SecurityContext
true
if current user in the role.public java.lang.String[] getUserRoles()
SecurityContext
getUserRoles
in interface SecurityContext
public javax.security.auth.Subject getSubject()
SecurityContext
getSubject
in interface SecurityContext
public boolean isAnyoneEnabled()
SecurityContext
isAnyoneEnabled
in interface SecurityContext
true
if authorization check should be performed.public java.security.Permission createPermissionInstance(java.util.Hashtable values)
SecurityContext
createPermissionInstance
in interface SecurityContext
public boolean isXSMode()
SecurityContext
isXSMode
in interface SecurityContext
public boolean attachToLightweightSession(java.sql.Connection conn)
SecurityContext
attachToLightweightSession
in interface SecurityContext
public boolean detachFromLightweightSession()
SecurityContext
detachFromLightweightSession
in interface SecurityContext
public java.lang.Object getAttachedLightweightSession()
SecurityContext
getAttachedLightweightSession
in interface SecurityContext
public boolean isReAuthenticated(long time)
SecurityContext
isReAuthenticated
in interface SecurityContext
protected void showPrincipals()
protected java.lang.Object internalGet(java.lang.String key)
internalGet
in class SecurityContextMap
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.4.0) E10686-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |