APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.security.util

public Class CryptoAlgorithmConstraints

extends AbstractAlgorithmConstraints
Class Inheritance
Imports
java.lang.ref.SoftReference, java.security.AlgorithmParameters, .CryptoPrimitive, .Key, java.util.Arrays, .Map, .Set, java.util.concurrent.ConcurrentHashMap

This class implements the algorithm constraints for the "jdk.crypto.disabledAlgorithms" security property. This security property can be overridden by the system property of the same name. See the java.security file for the syntax of the property value.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private volatile SoftReference<Map<String, Boolean>>
private static final Debug
private final Set<String>
private static final String
private static final Set<String>
Inherited from sun.security.util.AbstractAlgorithmConstraints:
decomposer

Constructor Summary

AccessConstructor and Description
pack-priv
CryptoAlgorithmConstraints(String
the security property name that define the disabled algorithm constraints
propertyName
)

Initialize algorithm constraints with the specified security property propertyName.

Method Summary

Modifier and TypeMethod and Description
private boolean
private static void
public static boolean
permits(String service, String algo)

public final boolean
permits(Set<CryptoPrimitive> notUsed1, String serviceDesc, AlgorithmParameters notUsed2)

Implements java.security.AlgorithmConstraints.permits.

Determines whether an algorithm is granted permission for the specified cryptographic primitives.

public final boolean
permits(Set<CryptoPrimitive> primitives, Key key)

Implements java.security.AlgorithmConstraints.permits.

Determines whether a key is granted permission for the specified cryptographic primitives.

public final boolean
permits(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters)

Implements java.security.AlgorithmConstraints.permits.

Determines whether an algorithm and the corresponding key are granted permission for the specified cryptographic primitives.

Inherited from sun.security.util.AbstractAlgorithmConstraints:
checkAlgorithmgetAlgorithmsgetAlgorithms

Field Detail

cacheRefback to summary
private volatile SoftReference<Map<String, Boolean>> cacheRef
debugback to summary
private static final Debug debug
disabledServicesback to summary
private final Set<String> disabledServices
PROPERTY_CRYPTO_DISABLED_ALGSback to summary
private static final String PROPERTY_CRYPTO_DISABLED_ALGS
SUPPORTED_SERVICESback to summary
private static final Set<String> SUPPORTED_SERVICES

Constructor Detail

CryptoAlgorithmConstraintsback to summary
pack-priv CryptoAlgorithmConstraints(String propertyName)

Initialize algorithm constraints with the specified security property propertyName. Note that if a system property of the same name is set, it overrides the security property.

Parameters
propertyName:String

the security property name that define the disabled algorithm constraints

Method Detail

cachedCheckAlgorithmback to summary
private boolean cachedCheckAlgorithm(String serviceDesc)
debugback to summary
private static void debug(String msg)
permitsback to summary
public static boolean permits(String service, String algo)
permitsback to summary
public final boolean permits(Set<CryptoPrimitive> notUsed1, String serviceDesc, AlgorithmParameters notUsed2)

Implements java.security.AlgorithmConstraints.permits.

Doc from java.security.AlgorithmConstraints.permits.

Determines whether an algorithm is granted permission for the specified cryptographic primitives.

Annotations
@Override
permitsback to summary
public final boolean permits(Set<CryptoPrimitive> primitives, Key key)

Implements java.security.AlgorithmConstraints.permits.

Doc from java.security.AlgorithmConstraints.permits.

Determines whether a key is granted permission for the specified cryptographic primitives.

This method is usually used to check key size and key usage.

Annotations
@Override
permitsback to summary
public final boolean permits(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters)

Implements java.security.AlgorithmConstraints.permits.

Doc from java.security.AlgorithmConstraints.permits.

Determines whether an algorithm and the corresponding key are granted permission for the specified cryptographic primitives.

Annotations
@Override
sun.security.util back to summary

private Class CryptoAlgorithmConstraints.CryptoHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final CryptoAlgorithmConstraints

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONSTRAINTSback to summary
pack-priv static final CryptoAlgorithmConstraints CONSTRAINTS

Constructor Detail

CryptoHolderback to summary
private CryptoHolder()