Class 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 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
    • Constructor Detail

      • CryptoServicesPermission

        public CryptoServicesPermission​(java.lang.String name)
    • Method Detail

      • implies

        public boolean implies​(java.security.Permission permission)
        Specified by:
        implies in class java.security.Permission
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in class java.security.Permission
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class java.security.Permission
      • getActions

        public java.lang.String getActions()
        Specified by:
        getActions in class java.security.Permission