AlgorithmConstraints Interface
This release includes an interface, java.security.AlgorithmConstraints,
for controlling allowed cryptographic algorithms. The AlgorithmConstraints interface
defines three permits() methods. These methods determine
whether an algorithm name or a key is permitted for certain cryptographic
functions. Cryptographic functions are represented by a set of CryptoPrimitive objects,
which are enumerations which contain fields such as STREAM_CIPHER,
MESSAGE_DIGEST, and SIGNATURE.
An AlgorithmConstraints implementation can therefore
answer questions such as Can I use this key with this algorithm
for the purpose of a cryptographic operation?
You can associate an AlgorithmConstraints object
with an SSLParameters object by using the setAlgorithmConstraints() method.
Use the getAlgorithmConstraints() method to retrieve
the current AlgorithmConstraints object for an SSLParameters object.