Package oracle.as.scheduler.security
Class RuntimeDataPermission<ID_TYPE extends oracle.as.scheduler.security.MetadataPermissionId>
java.lang.Object
java.security.Permission
oracle.as.scheduler.security.internal.permission.AbstractBulkPrivilegeCheckSupportPermission
oracle.as.scheduler.security.RuntimeDataPermission<ID_TYPE>
- All Implemented Interfaces:
Serializable,Guard,oracle.as.scheduler.security.internal.permission.BulkPrivilegeCheckSupport,oracle.as.scheduler.security.internal.permission.MaskSupport,oracle.as.scheduler.security.internal.permission.MultistripeBulkPrivilegeCheckSupport
public class RuntimeDataPermission<ID_TYPE extends oracle.as.scheduler.security.MetadataPermissionId>
extends oracle.as.scheduler.security.internal.permission.AbstractBulkPrivilegeCheckSupportPermission
implements oracle.as.scheduler.security.internal.permission.MaskSupport, Serializable
Represents the access control definitions to enforce access of ESS runtime resources.
RuntimeDataPermission is a basic unit encapsulating the required permissions to access ESS requests and outputs.
A target of RuntimeDataPermission can either be a simple string or the full, partial or canonical form of objects of type MetadataObjectId.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum of the permissible actions for ESS requests.static enumEnum of the menus defined for RuntimeDataPermissions. -
Constructor Summary
ConstructorsConstructorDescriptionRuntimeDataPermission(ID_TYPE[] targets, RuntimeDataPermission.Action... actions) Constructs the instance of RuntimeData permission for the given array of targets and actionsRuntimeDataPermission(ID_TYPE target, RuntimeDataPermission.Action... actions) Constructs the instance of RuntimeData permission for the given array of targets and actionsRuntimeDataPermission(String target, String actions) Constructs the instance of RuntimeData permission for the given target and actions -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks two MetadataPermission objects for equality.Gets the masks of actions added to this RuntimeDataPermission instanceList<char[]>Gets the patterns of actions added to this RuntimeDataPermission instanceGets the metadata object Ids for which permissions are deniedGets the metadata object Ids for which permissions are allowedbooleanChecks if the specified RuntimeDataPermission's actions are "implied by" this object's actions.Methods inherited from class oracle.as.scheduler.security.internal.permission.AbstractBulkPrivilegeCheckSupportPermission
_convertToString, beginAdditionalPolicyStripeCheck, endAdditionalPolicyStripeCheck, getActions, getDeniedTargets, getMask, getPassedTargets, getTargetCollection, hashCode, impliesIgnoreMask, isAdditionalPolicyStripeCheck, toStringMethods inherited from class java.security.Permission
checkGuard, getNameMethods inherited from interface oracle.as.scheduler.security.internal.permission.MaskSupport
getMask, impliesIgnoreMask
-
Constructor Details
-
RuntimeDataPermission
Constructs the instance of RuntimeData permission for the given target and actions- Parameters:
target- the String representation of targetsactions- string representation of actions of typeRuntimeDataPermission.Action
-
RuntimeDataPermission
Constructs the instance of RuntimeData permission for the given array of targets and actions- Parameters:
targets- the array of targets of typeMetadataObjectIdactions- array of actions of typeRuntimeDataPermission.Action
-
RuntimeDataPermission
Constructs the instance of RuntimeData permission for the given array of targets and actions- Parameters:
target- of typeMetadataObjectIdactions- array of actions of typeRuntimeDataPermission.Action
-
-
Method Details
-
getPassedMetadataObjectIds
Gets the metadata object Ids for which permissions are allowed- Returns:
- the List of passed metadata object ids.
-
getDeniedMetadataObjectIds
Gets the metadata object Ids for which permissions are denied- Returns:
- the List of denied metadata object ids.
-
getActionPatterns
Gets the patterns of actions added to this RuntimeDataPermission instance- Specified by:
getActionPatternsin interfaceoracle.as.scheduler.security.internal.permission.MaskSupport- Returns:
- the List of action patterns
-
getActionMasks
Gets the masks of actions added to this RuntimeDataPermission instance- Specified by:
getActionMasksin interfaceoracle.as.scheduler.security.internal.permission.MaskSupport- Returns:
- the List of action masks
-
implies
Checks if the specified RuntimeDataPermission's actions are "implied by" this object's actions.- Overrides:
impliesin classoracle.as.scheduler.security.internal.permission.AbstractBulkPrivilegeCheckSupportPermission- Parameters:
p- the permission to check against.- Returns:
- true if the specified RuntimeDataPermission is implied by this object, false if not.
-
equals
Checks two MetadataPermission objects for equality. Checks that obj is a MetadataPermission, and has the same pathname and actions as this object.- Specified by:
equalsin classPermission- Parameters:
obj- the object we are testing for equality with this object.- Returns:
trueif obj is a MetadataPermission, and has the same pathname and actions as this MetadataPermission object,falseotherwise.
-
newPermissionCollection
- Overrides:
newPermissionCollectionin classPermission
-
getRuntimeTargetNames
-