IT. Expert System.

Java Standard Edition (SE)

AlgorithmConstraints


compact1, compact2, compact3
java.security

Interface AlgorithmConstraints



  • public interface AlgorithmConstraints
    This interface specifies constraints for cryptographic algorithms, keys (key sizes), and other algorithm parameters.

    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.

    Since:
    1.7
    See Also:
    SSLParameters.getAlgorithmConstraints(), SSLParameters.setAlgorithmConstraints(AlgorithmConstraints)
    • Method Detail

      • permits

        boolean permits(Set<CryptoPrimitive> primitives,
                        String algorithm,
                        AlgorithmParameters parameters)
        Determines whether an algorithm is granted permission for the specified cryptographic primitives.
        Parameters:
        primitives - a set of cryptographic primitives
        algorithm - the algorithm name
        parameters - the algorithm parameters, or null if no additional parameters
        Returns:
        true if the algorithm is permitted and can be used for all of the specified cryptographic primitives
        Throws:
        IllegalArgumentException - if primitives or algorithm is null or empty
      • permits

        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.

        Parameters:
        primitives - a set of cryptographic primitives
        key - the key
        Returns:
        true if the key can be used for all of the specified cryptographic primitives
        Throws:
        IllegalArgumentException - if primitives is null or empty, or the key is null
      • permits

        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.
        Parameters:
        primitives - a set of cryptographic primitives
        algorithm - the algorithm name
        key - the key
        parameters - the algorithm parameters, or null if no additional parameters
        Returns:
        true if the key and the algorithm can be used for all of the specified cryptographic primitives
        Throws:
        IllegalArgumentException - if primitives or algorithm is null or empty, or the key is null


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 529 / 158734067. Delta: 0.00445 с