Class AccessControlContext
java.lang.Object
java.security.AccessControlContext
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the the Security Manager, which is no longer supported.
       There is no replacement for the Security Manager or this class.
AccessControlContext was used with the Security Manager for access
 control decisions based on context that it encapsulated. This feature no
 longer exists.- Since:
- 1.2
- 
Constructor SummaryConstructorsConstructorDescriptionAccessControlContext(AccessControlContext acc, DomainCombiner combiner) Deprecated, for removal: This API element is subject to removal in a future version.Create a newAccessControlContextwith the givenAccessControlContextandDomainCombiner.AccessControlContext(ProtectionDomain[] context) Deprecated, for removal: This API element is subject to removal in a future version.Create anAccessControlContextwith the given array ofProtectionDomainobjects.
- 
Method SummaryModifier and TypeMethodDescriptionvoidcheckPermission(Permission perm) Deprecated, for removal: This API element is subject to removal in a future version.ThrowsAccessControlException.booleanDeprecated, for removal: This API element is subject to removal in a future version.Checks twoAccessControlContextobjects for equality.Deprecated, for removal: This API element is subject to removal in a future version.Get theDomainCombinerassociated with thisAccessControlContext.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns the hash code value for this context.
- 
Constructor Details- 
AccessControlContextDeprecated, for removal: This API element is subject to removal in a future version.Create anAccessControlContextwith the given array ofProtectionDomainobjects. Context must not benull. Duplicate domains will be removed from the context.- Parameters:
- context- the- ProtectionDomainobjects associated with this context. The non-duplicate domains are copied from the array. Subsequent changes to the array will not affect this- AccessControlContext.
- Throws:
- NullPointerException- if- contextis- null
 
- 
AccessControlContextDeprecated, for removal: This API element is subject to removal in a future version.Create a newAccessControlContextwith the givenAccessControlContextandDomainCombiner. This constructor associates the providedDomainCombinerwith the providedAccessControlContext.- Parameters:
- acc- the- AccessControlContextassociated with the provided- DomainCombiner.
- combiner- the- DomainCombinerto be associated with the provided- AccessControlContext.
- Throws:
- NullPointerException- if the provided- contextis- null.
- Since:
- 1.3
 
 
- 
- 
Method Details- 
getDomainCombinerDeprecated, for removal: This API element is subject to removal in a future version.Get theDomainCombinerassociated with thisAccessControlContext.- Returns:
- the DomainCombinerassociated with thisAccessControlContext, ornullif there is none.
- Since:
- 1.3
 
- 
checkPermissionDeprecated, for removal: This API element is subject to removal in a future version.ThrowsAccessControlException.- Parameters:
- perm- ignored
- Throws:
- AccessControlException- always
 
- 
equalsDeprecated, for removal: This API element is subject to removal in a future version.Checks twoAccessControlContextobjects for equality. Checks thatobjis anAccessControlContextand has the same set ofProtectionDomainobjects as this context.
- 
hashCodepublic int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns the hash code value for this context. The hash code is computed by exclusive or-ing the hash code of all the protection domains in the context together.
 
-