Package org.bouncycastle.crypto
Class CryptoServicesPermission
- java.lang.Object
-
- java.security.Permission
-
- org.bouncycastle.crypto.CryptoServicesPermission
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Guard
public class CryptoServicesPermission extends java.security.Permission
Permissions that need to be configured if a SecurityManager is used.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_RANDOM
Enable the setting of the default SecureRandom.static java.lang.String
FIPS_EXPORT_KEYS
Allow a caller to export secret/private keys to be from the jar.static java.lang.String
FIPS_MODE_CHANGE_TO_APPROVED_MODE_ENABLED
Enable a thread to change its state into approved mode.static java.lang.String
FIPS_MODE_EXPORT_PRIVATE_KEY
Enable the export of a private key from the jar.static java.lang.String
FIPS_MODE_EXPORT_SECRET_KEY
Enable the export of a secret key from the jar.static java.lang.String
FIPS_MODE_TLS_NULL_DIGEST_ENABLED
Enable support for signature algorithms that can take an actual digest as an argument, rather than message to be digested.static java.lang.String
FIPS_MODE_TLS_PKCS15_KEY_WRAP_ENABLED
Enable support for PKCS 1.5 RSA encryption to be used for key wrapping.static java.lang.String
FIPS_MODE_UNAPPROVED_MODE_ENABLED
Enable unapproved mode as the default.static java.lang.String
FIPS_TLS_ALGORITHMS_ENABLED
Enable full TLS support for providers like the JSSE.static java.lang.String
GLOBAL_CONFIG
Enable the setting of global configuration properties.static java.lang.String
THREAD_LOCAL_CONFIG
Enable the setting of thread local configuration properties.
-
Constructor Summary
Constructors Constructor Description CryptoServicesPermission(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getActions()
int
hashCode()
boolean
implies(java.security.Permission permission)
-
-
-
Field Detail
-
FIPS_EXPORT_KEYS
public static final java.lang.String FIPS_EXPORT_KEYS
Allow a caller to export secret/private keys to be from the jar. This permission enables both FIPS_MODE_EXPORT_PRIVATE_KEY and FIPS_MODE_EXPORT_SECRET_KEY.- See Also:
- Constant Field Values
-
FIPS_TLS_ALGORITHMS_ENABLED
public static final java.lang.String FIPS_TLS_ALGORITHMS_ENABLED
Enable full TLS support for providers like the JSSE. This permission enables FIPS_MODE_TLS_ECDH_ENABLED and FIPS_MODE_TLS_PKCS15_KEY_WRAP_ENABLED.- See Also:
- Constant Field Values
-
FIPS_MODE_UNAPPROVED_MODE_ENABLED
public static final java.lang.String FIPS_MODE_UNAPPROVED_MODE_ENABLED
Enable unapproved mode as the default.- See Also:
- Constant Field Values
-
FIPS_MODE_CHANGE_TO_APPROVED_MODE_ENABLED
public static final java.lang.String FIPS_MODE_CHANGE_TO_APPROVED_MODE_ENABLED
Enable a thread to change its state into approved mode.- See Also:
- Constant Field Values
-
FIPS_MODE_EXPORT_PRIVATE_KEY
public static final java.lang.String FIPS_MODE_EXPORT_PRIVATE_KEY
Enable the export of a private key from the jar.- See Also:
- Constant Field Values
-
FIPS_MODE_EXPORT_SECRET_KEY
public static final java.lang.String FIPS_MODE_EXPORT_SECRET_KEY
Enable the export of a secret key from the jar.- See Also:
- Constant Field Values
-
FIPS_MODE_TLS_NULL_DIGEST_ENABLED
public static final java.lang.String FIPS_MODE_TLS_NULL_DIGEST_ENABLED
Enable support for signature algorithms that can take an actual digest as an argument, rather than message to be digested.- See Also:
- Constant Field Values
-
FIPS_MODE_TLS_PKCS15_KEY_WRAP_ENABLED
public static final java.lang.String FIPS_MODE_TLS_PKCS15_KEY_WRAP_ENABLED
Enable support for PKCS 1.5 RSA encryption to be used for key wrapping.- See Also:
- Constant Field Values
-
GLOBAL_CONFIG
public static final java.lang.String GLOBAL_CONFIG
Enable the setting of global configuration properties. This permission implies THREAD_LOCAL_CONFIG- See Also:
- Constant Field Values
-
THREAD_LOCAL_CONFIG
public static final java.lang.String THREAD_LOCAL_CONFIG
Enable the setting of thread local configuration properties.- See Also:
- Constant Field Values
-
DEFAULT_RANDOM
public static final java.lang.String DEFAULT_RANDOM
Enable the setting of the default SecureRandom.- See Also:
- Constant Field Values
-
-
Method Detail
-
implies
public boolean implies(java.security.Permission permission)
- Specified by:
implies
in classjava.security.Permission
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in classjava.security.Permission
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classjava.security.Permission
-
getActions
public java.lang.String getActions()
- Specified by:
getActions
in classjava.security.Permission
-
-