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

public Class LegacyAlgorithmConstraints

extends AbstractAlgorithmConstraints
Class Inheritance
Imports
java.security.AlgorithmParameters, .CryptoPrimitive, .Key, java.util.Set

Algorithm constraints for legacy algorithms.

Field Summary

Modifier and TypeField and Description
private final Set<String>
public static final String
Inherited from sun.security.util.AbstractAlgorithmConstraints:
decomposer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final boolean
permits(Set<CryptoPrimitive> primitives, String algorithm, AlgorithmParameters parameters)

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

legacyAlgorithmsback to summary
private final Set<String> legacyAlgorithms
PROPERTY_TLS_LEGACY_ALGSback to summary
public static final String PROPERTY_TLS_LEGACY_ALGS

Constructor Detail

LegacyAlgorithmConstraintsback to summary
public LegacyAlgorithmConstraints(String propertyName, AlgorithmDecomposer decomposer)

Method Detail

permitsback to summary
public final boolean permits(Set<CryptoPrimitive> primitives, String algorithm, AlgorithmParameters parameters)

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