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
ConstructorDescriptionAccessControlContext
(AccessControlContext acc, DomainCombiner combiner) Deprecated, for removal: This API element is subject to removal in a future version.Create a newAccessControlContext
with the givenAccessControlContext
andDomainCombiner
.AccessControlContext
(ProtectionDomain[] context) Deprecated, for removal: This API element is subject to removal in a future version.Create anAccessControlContext
with the given array ofProtectionDomain
objects. -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkPermission
(Permission perm) Deprecated, for removal: This API element is subject to removal in a future version.ThrowsAccessControlException
.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Checks twoAccessControlContext
objects for equality.Deprecated, for removal: This API element is subject to removal in a future version.Get theDomainCombiner
associated with thisAccessControlContext
.int
hashCode()
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 anAccessControlContext
with the given array ofProtectionDomain
objects. Context must not benull
. Duplicate domains will be removed from the context.- Parameters:
context
- theProtectionDomain
objects associated with this context. The non-duplicate domains are copied from the array. Subsequent changes to the array will not affect thisAccessControlContext
.- Throws:
NullPointerException
- ifcontext
isnull
-
AccessControlContext
Deprecated, for removal: This API element is subject to removal in a future version.Create a newAccessControlContext
with the givenAccessControlContext
andDomainCombiner
. This constructor associates the providedDomainCombiner
with the providedAccessControlContext
.- Parameters:
acc
- theAccessControlContext
associated with the providedDomainCombiner
.combiner
- theDomainCombiner
to be associated with the providedAccessControlContext
.- Throws:
NullPointerException
- if the providedcontext
isnull
.- Since:
- 1.3
-
-
Method Details
-
getDomainCombiner
Deprecated, for removal: This API element is subject to removal in a future version.Get theDomainCombiner
associated with thisAccessControlContext
.- Returns:
- the
DomainCombiner
associated with thisAccessControlContext
, ornull
if 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 twoAccessControlContext
objects for equality. Checks thatobj
is anAccessControlContext
and has the same set ofProtectionDomain
objects 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.
-