Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
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

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-java/security/AlgorithmConstraints.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut