AlgorithmConstraints
objects are immutable. An implementation
of this interface should not provide methods that can change the state
of an instance once it has been created.
Note that AlgorithmConstraints
can be used to represent the
restrictions described by the security properties
jdk.certpath.disabledAlgorithms
and
jdk.tls.disabledAlgorithms
, or could be used by a
concrete PKIXCertPathChecker
to check whether a specified
certificate in the certification path contains the required algorithm
constraints.
javax.net.ssl.SSLParameters#getAlgorithmConstraints
, javax.net.ssl.SSLParameters#setAlgorithmConstraints(AlgorithmConstraints)
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if the algorithm is permitted and can be used for
all the specified cryptographic primitivesa set of cryptographic primitives primitives, String the algorithm name algorithm, AlgorithmParameters the algorithm parameters, or parameters)null
if no additional parametersDetermines whether an algorithm is granted permission for the specified cryptographic primitives. |
public boolean | Returns: true if the key can be used for all the specified
cryptographic primitivesa set of cryptographic primitives primitives, Key the key key)Determines whether a key is granted permission for the specified cryptographic primitives. |
public boolean | Returns: true if the key and the algorithm can be used for all the
specified cryptographic primitivesa set of cryptographic primitives primitives, String the algorithm name algorithm, Key the key key, AlgorithmParameters the algorithm parameters, or parameters)null
if no additional parametersDetermines whether an algorithm and the corresponding key are granted permission for the specified cryptographic primitives. |
permits | back to summary |
---|---|
public boolean permits(Set<CryptoPrimitive> primitives, String algorithm, AlgorithmParameters parameters) Determines whether an algorithm is granted permission for the specified cryptographic primitives.
|
permits | back to summary |
---|---|
public boolean permits(Set<CryptoPrimitive> primitives, Key key) Determines whether a key is granted permission for the specified cryptographic primitives. This method is usually used to check key size and key usage.
|
permits | back to summary |
---|---|
public boolean permits(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters) Determines whether an algorithm and the corresponding key are granted permission for the specified cryptographic primitives.
|