javax.crypto.CryptoPermission and
javax.crypto.CryptoAllPermission.
The format of a permission entry in the jurisdiction policy file is:
permission <crypto permission class name>[, <algorithm name>
[[, <exemption mechanism name>][, <maxKeySize>
[, <AlgorithmParameterSpec class name>, <parameters
for constructing an AlgorithmParameterSpec object>]]]];
java.security.Permissions , java.security.spec.AlgorithmParameterSpec , javax.crypto.CryptoPermission , javax.crypto.CryptoAllPermission , javax.crypto.CryptoPermissions
| Modifier and Type | Class and Description |
|---|---|
| private static class | CryptoPolicyParser.
Each crypto permission entry in the policy configuration file is
represented by a |
| private static class | CryptoPolicyParser.
Each grant entry in the policy configuration file is represented by a
|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Vector | |
| private int | |
| private StreamTokenizer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static AlgorithmParameterSpec | |
| pack-priv CryptoPermission[] | |
| private boolean | |
| private int | |
| private String | |
| private CryptoPolicyParser. | |
| private CryptoPolicyParser. | parsePermissionEntry(Hashtable<String, Vector<String>> processedPermissions)
parse a CryptoPermission entry |
| private boolean | |
| private boolean | |
| pack-priv void |
| allPermEntryFound | back to summary |
|---|---|
| private boolean allPermEntryFound | |
| grantEntries | back to summary |
|---|---|
| private final Vector<CryptoPolicyParser. | |
| lookahead | back to summary |
|---|---|
| private int lookahead | |
| st | back to summary |
|---|---|
| private StreamTokenizer st | |
| CryptoPolicyParser | back to summary |
|---|---|
| pack-priv CryptoPolicyParser() Creates a | |
| getInstance | back to summary |
|---|---|
| private static AlgorithmParameterSpec getInstance(String type, Integer[] params) throws ParsingException | |
| getPermissions | back to summary |
|---|---|
| pack-priv CryptoPermission[] getPermissions() | |
| isConsistent | back to summary |
|---|---|
| private boolean isConsistent(String alg, String exemptionMechanism, Hashtable<String, Vector<String>> processedPermissions) | |
| match | back to summary |
|---|---|
| private int match() throws ParsingException, IOException Excepts to match a non-negative number. | |
| match | back to summary |
|---|---|
| private String match(String expect) throws ParsingException, IOException | |
| parseGrantEntry | back to summary |
|---|---|
| private CryptoPolicyParser. parse a Grant entry | |
| parsePermissionEntry | back to summary |
|---|---|
| private CryptoPolicyParser. parse a CryptoPermission entry | |
| peek | back to summary |
|---|---|
| private boolean peek(String expect) | |
| peekAndMatch | back to summary |
|---|---|
| private boolean peekAndMatch(String expect) throws ParsingException, IOException | |
| read | back to summary |
|---|---|
| pack-priv void read(Reader policy) throws ParsingException, IOException Reads a policy configuration using a
| |
CryptoPermissionEntry object.
For example, the entry
permission javax.crypto.CryptoPermission "DES", 56;
is represented internally
pe = new CryptoPermissionEntry("javax.crypto.cryptoPermission",
"DES", 56);
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv AlgorithmParameterSpec | |
| pack-priv boolean | |
| pack-priv String | |
| pack-priv String | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| alg | back to summary |
|---|---|
| pack-priv String alg | |
| algParamSpec | back to summary |
|---|---|
| pack-priv AlgorithmParameterSpec algParamSpec | |
| checkParam | back to summary |
|---|---|
| pack-priv boolean checkParam | |
| cryptoPermission | back to summary |
|---|---|
| pack-priv String cryptoPermission | |
| exemptionMechanism | back to summary |
|---|---|
| pack-priv String exemptionMechanism | |
| maxKeySize | back to summary |
|---|---|
| pack-priv int maxKeySize | |
| CryptoPermissionEntry | back to summary |
|---|---|
| pack-priv CryptoPermissionEntry() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Calculates a hash code value for the object. Objects which are equal will also have the same hashcode.
| |
GrantEntry object.
For example, the entry
grant {
permission javax.crypto.CryptoPermission "DES", 56;
};
is represented internally
pe = new CryptoPermissionEntry("javax.crypto.CryptoPermission",
"DES", 56);
ge = new GrantEntry();
ge.add(pe);
| Modifier and Type | Field and Description |
|---|---|
| private final Vector |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void |
| permissionEntries | back to summary |
|---|---|
| private final Vector<CryptoPolicyParser. | |
| GrantEntry | back to summary |
|---|---|
| pack-priv GrantEntry() | |
| add | back to summary |
|---|---|
| pack-priv void add(CryptoPolicyParser. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | ParsingException(String
the detail message. msg)Constructs a |
| pack-priv | |
| pack-priv |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| ParsingException | back to summary |
|---|---|
| pack-priv ParsingException(String msg) Constructs a
| |
| ParsingException | back to summary |
|---|---|
| pack-priv ParsingException(int line, String msg) | |
| ParsingException | back to summary |
|---|---|
| pack-priv ParsingException(int line, String expect, String actual) | |