APIdia Launch Partner
Top Description Fields Constructors Methods
javax.crypto

pack-priv final Class CryptoAllPermission

Additional top-level class in compilation unit: CryptoAllPermissionCollection.

extends CryptoPermission
Class Inheritance
Imports
java.security.*, java.util.Enumeration, .Vector

The CryptoAllPermission is a permission that implies any other crypto permissions.
Author
Sharon Liu
Since
1.4
See Also
java.security.Permission, java.security.AllPermission

Field Summary

Modifier and TypeField and Description
pack-priv static final String
pack-priv static final CryptoAllPermission
private static final long
Inherited from javax.crypto.CryptoPermission:
ALG_NAME_WILDCARD

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if obj is a CryptoAllPermission object.
equals
(Object
the object to test for equality with this object.
obj
)

Overrides javax.crypto.CryptoPermission.equals.

Checks two CryptoAllPermission objects for equality.

public int

Returns:

the hash code value for this object
hashCode
()

Overrides javax.crypto.CryptoPermission.hashCode.

Returns the hash code value for this object.

public boolean

Returns:

true if the specified permission is an instance of CryptoPermission.
implies
(Permission
the permission to check against.
p
)

Overrides javax.crypto.CryptoPermission.implies.

Checks if the specified permission is implied by this object.

public PermissionCollection

Returns:

a new PermissionCollection object suitable for storing CryptoAllPermission objects.
newPermissionCollection
()

Overrides javax.crypto.CryptoPermission.newPermissionCollection.

Returns a new PermissionCollection object for storing CryptoAllPermission objects.

Inherited from javax.crypto.CryptoPermission:
getActionsgetAlgorithmgetAlgorithmParameterSpecgetCheckParamgetExemptionMechanismgetMaxKeySizetoString

Field Detail

ALG_NAMEback to summary
pack-priv static final String ALG_NAME
INSTANCEback to summary
pack-priv static final CryptoAllPermission INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.crypto.CryptoPermission.serialVersionUID.

Annotations
@Serial

Constructor Detail

CryptoAllPermissionback to summary
private CryptoAllPermission()

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides javax.crypto.CryptoPermission.equals.

Checks two CryptoAllPermission objects for equality. Two CryptoAllPermission objects are always equal.

Parameters
obj:Object

the object to test for equality with this object.

Returns:boolean

true if obj is a CryptoAllPermission object.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides javax.crypto.CryptoPermission.hashCode.

Returns the hash code value for this object.

Returns:int

the hash code value for this object

Annotations
@Override
impliesback to summary
public boolean implies(Permission p)

Overrides javax.crypto.CryptoPermission.implies.

Checks if the specified permission is implied by this object.

Parameters
p:Permission

the permission to check against.

Returns:boolean

true if the specified permission is an instance of CryptoPermission.

newPermissionCollectionback to summary
public PermissionCollection newPermissionCollection()

Overrides javax.crypto.CryptoPermission.newPermissionCollection.

Returns a new PermissionCollection object for storing CryptoAllPermission objects.

Returns:PermissionCollection

a new PermissionCollection object suitable for storing CryptoAllPermission objects.