Save This Page
Home » openjdk-7 » java » security » [javadoc | source]
java.security
public interface: AlgorithmConstraints [javadoc | source] This interface specifies constraints for cryptographic algorithms, keys (key sizes), and other algorithm parameters.

{@code 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 {@code AlgorithmConstraints} can be used to represent the restrictions described by the security properties {@code jdk.certpath.disabledAlgorithms} and {@code jdk.tls.disabledAlgorithms}, or could be used by a concrete {@code PKIXCertPathChecker} to check whether a specified certificate in the certification path contains the required algorithm constraints.

Method from java.security.AlgorithmConstraints Summary:
permits,   permits,   permits
Method from java.security.AlgorithmConstraints Detail:
 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.

 public boolean permits(Set<CryptoPrimitive> primitives,
    String algorithm,
    AlgorithmParameters parameters)
    Determines whether an algorithm is granted permission for the specified cryptographic primitives.
 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.