|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.6.0) E10686-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityContext
Field Summary |
---|
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 |
Method Summary | |
---|---|
boolean |
attachToLightweightSession(java.sql.Connection conn)
Attach connection to lightweight XS session |
java.security.Permission |
createPermissionInstance(java.util.Hashtable values)
Create a FunctionPermission, DataPermission or Permission. |
boolean |
detachFromLightweightSession()
Detach connection from lightweight XS session |
java.lang.Object |
getAttachedLightweightSession()
Return the attached lightweight XS session |
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()
Retrieves the name of principal of this SecurityContext. |
java.security.Principal |
getUserPrincipal()
Retrieves the principal of this SecurityContext. |
UserProfile |
getUserProfile()
Retrieves the user profile object of this SecurityContext. |
java.lang.String[] |
getUserRoles()
A list of role names in the Subject |
boolean |
hasPermission(java.security.Permission permission)
True if the principal in this SecurityContext has the 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()
True if authorization check is enable |
boolean |
isPageSecurityMetadataEnabled()
True if page security metadata is enable. |
boolean |
isReAuthenticated(long ts)
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) |
void |
setPermissionState(PermissionState permissionState)
Internal: Applications should not use this method. Set the PermissionState |
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 |
Method Detail |
---|
java.security.Principal getUserPrincipal()
HttpServletRequest.getUserPrincipal()
java.lang.String getUserName()
UserProfile getUserProfile()
boolean hasPermission(java.security.Permission permission)
permission
- the permission to be checked
true
if the principal has the specified permission.boolean isAuthorizationEnabled()
true
if authorization check should be performed.boolean isAuthenticationEnabled()
true
if authentication require flag set
to be enforced by security constraints.boolean isAuthenticated()
true
if there is an authenticated user.boolean isUserInRole(java.lang.String roleName)
true
if current user in the role.java.lang.String[] getUserRoles()
javax.security.auth.Subject getSubject()
boolean isAnyoneEnabled()
true
if authorization check should be performed.java.security.Permission createPermissionInstance(java.util.Hashtable values)
boolean isXSMode()
boolean attachToLightweightSession(java.sql.Connection conn)
boolean detachFromLightweightSession()
java.lang.Object getAttachedLightweightSession()
boolean isReAuthenticated(long ts)
boolean isPageSecurityMetadataEnabled()
PermissionState getPermissionState()
void setPermissionState(PermissionState permissionState)
permissionState
- the active permission state
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.6.0) E10686-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |