Additional top-level class in compilation unit: CryptoPermissionCollection.
CryptoPermission class extends the
java.security.Permission class. A
CryptoPermission object is used to represent
the ability of an application to use certain
algorithms with certain key sizes and other
restrictions in certain environments.
java.security.Permission
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| pack-priv static final String | |
| private AlgorithmParameterSpec | |
| private boolean | |
| private String | |
| private int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | CryptoPermission(String
the algorithm name. alg, int the maximum allowable key size,
specified in number of bits. maxKeySize)Constructor that takes an algorithm name and a maximum key size. |
| pack-priv | CryptoPermission(String
the algorithm name. alg, int the maximum allowable key size,
specified in number of bits. maxKeySize, AlgorithmParameterSpec the limits for allowable algorithm
parameters. algParamSpec)Constructor that takes an algorithm name, a maximum
key size, and an |
| pack-priv | CryptoPermission(String
the algorithm name. alg, String the name of the exemption mechanism. exemptionMechanism)Constructor that takes an algorithm name and the name of an exemption mechanism. |
| pack-priv | CryptoPermission(String
the algorithm name. alg, int the maximum allowable key size,
specified in number of bits. maxKeySize, String the name of the exemption
mechanism. exemptionMechanism)Constructor that takes an algorithm name, a maximum key size, and the name of an exemption mechanism. |
| pack-priv | CryptoPermission(String
the algorithm name. alg, int the maximum allowable key size,
specified in number of bits. maxKeySize, AlgorithmParameterSpec the limit for allowable algorithm
parameter spec. algParamSpec, String the name of the exemption
mechanism. exemptionMechanism)Constructor that takes an algorithm name, a maximum key
size, the name of an exemption mechanism, and an
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if obj is equal to this object.the object to test for equality with this object. obj)Implements abstract java. Checks two |
| public String | getActions()
Implements abstract java. There is no action defined for a |
| pack-priv final String | |
| pack-priv final AlgorithmParameterSpec | getAlgorithmParameterSpec()
Returns the AlgorithmParameterSpec associated with this CryptoPermission object. |
| pack-priv final boolean | getCheckParam()
Returns |
| pack-priv final String | getExemptionMechanism()
Returns the exemption mechanism name
associated with this |
| pack-priv final int | |
| public int | Returns: the hash code value for this objectImplements abstract java. Returns the hash code value for this object. |
| public boolean | Returns: true if the specified permission is equal to or
implied by this permission, false otherwise.the permission to check against. p)Implements abstract java. Checks if the specified permission is "implied" by this object. |
| private boolean | |
| private boolean | |
| public PermissionCollection | Returns: a newPermissionCollection object suitable for storing
CryptoPermissions.Overrides java. Returns a new |
| public String | Returns: information about thisCryptoPermission object.Overrides java. Returns a string describing this |
| alg | back to summary |
|---|---|
| private final String alg | |
| ALG_NAME_WILDCARD | back to summary |
|---|---|
| pack-priv static final String ALG_NAME_WILDCARD | |
| algParamSpec | back to summary |
|---|---|
private AlgorithmParameterSpec algParamSpec
| |
| checkParam | back to summary |
|---|---|
| private boolean checkParam | |
| exemptionMechanism | back to summary |
|---|---|
| private String exemptionMechanism | |
| maxKeySize | back to summary |
|---|---|
| private int maxKeySize | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| CryptoPermission | back to summary |
|---|---|
| pack-priv CryptoPermission(String alg) Constructor that takes an algorithm name. This constructor implies that the given algorithm can be used without any restrictions.
| |
| CryptoPermission | back to summary |
|---|---|
| pack-priv CryptoPermission(String alg, int maxKeySize) Constructor that takes an algorithm name and a maximum
key size.
This constructor implies that the given algorithm can be
used with a key size up to
| |
| CryptoPermission | back to summary |
|---|---|
| pack-priv CryptoPermission(String alg, int maxKeySize, AlgorithmParameterSpec algParamSpec) Constructor that takes an algorithm name, a maximum
key size, and an
| |
| CryptoPermission | back to summary |
|---|---|
| pack-priv CryptoPermission(String alg, String exemptionMechanism) Constructor that takes an algorithm name and the name of an exemption mechanism. This constructor implies that the given algorithm can be used without any key size or algorithm parameter restrictions provided that the specified exemption mechanism is enforced. | |
| CryptoPermission | back to summary |
|---|---|
| pack-priv CryptoPermission(String alg, int maxKeySize, String exemptionMechanism) Constructor that takes an algorithm name, a maximum key
size, and the name of an exemption mechanism.
This constructor implies that the given algorithm can be
used with a key size up to | |
| CryptoPermission | back to summary |
|---|---|
| pack-priv CryptoPermission(String alg, int maxKeySize, AlgorithmParameterSpec algParamSpec, String exemptionMechanism) Constructor that takes an algorithm name, a maximum key
size, the name of an exemption mechanism, and an
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract java. Checks two | |
| getActions | back to summary |
|---|---|
| public String getActions() Implements abstract java. There is no action defined for a | |
| getAlgorithm | back to summary |
|---|---|
| pack-priv final String getAlgorithm() Returns the algorithm name associated with
this | |
| getAlgorithmParameterSpec | back to summary |
|---|---|
| pack-priv final AlgorithmParameterSpec getAlgorithmParameterSpec() Returns the AlgorithmParameterSpec associated with this CryptoPermission object. | |
| getCheckParam | back to summary |
|---|---|
| pack-priv final boolean getCheckParam() Returns | |
| getExemptionMechanism | back to summary |
|---|---|
| pack-priv final String getExemptionMechanism() Returns the exemption mechanism name
associated with this | |
| getMaxKeySize | back to summary |
|---|---|
| pack-priv final int getMaxKeySize() Returns the maximum allowable key size associated
with this | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract java. Returns the hash code value for this object.
| |
| implies | back to summary |
|---|---|
| public boolean implies(Permission p) Implements abstract java. Checks if the specified permission is "implied" by this object.
More specifically, this method returns
| |
| impliesExemptionMechanism | back to summary |
|---|---|
| private boolean impliesExemptionMechanism(String exemptionMechanism) | |
| impliesParameterSpec | back to summary |
|---|---|
| private boolean impliesParameterSpec(boolean checkParam, AlgorithmParameterSpec algParamSpec) | |
| newPermissionCollection | back to summary |
|---|---|
| public PermissionCollection newPermissionCollection() Overrides java. Returns a new
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string describing this
| |