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 Summary
ConstructorsConstructorDescriptionAccessControlContext(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 Summary
Modifier 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
-
AccessControlContext
Deprecated, 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- theProtectionDomainobjects associated with this context. The non-duplicate domains are copied from the array. Subsequent changes to the array will not affect thisAccessControlContext.- Throws:
NullPointerException- ifcontextisnull
-
AccessControlContext
Deprecated, 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- theAccessControlContextassociated with the providedDomainCombiner.combiner- theDomainCombinerto be associated with the providedAccessControlContext.- Throws:
NullPointerException- if the providedcontextisnull.- Since:
- 1.3
-
-
Method Details
-
getDomainCombiner
Deprecated, 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
-
checkPermission
Deprecated, for removal: This API element is subject to removal in a future version.ThrowsAccessControlException.- Parameters:
perm- ignored- Throws:
AccessControlException- always
-
equals
Deprecated, 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. -
hashCode
public 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.
-