javax.security.auth.message

Class MessagePolicy.TargetPolicy

  • Enclosing class:
    MessagePolicy

    public static class MessagePolicy.TargetPolicy
    extends Object
    This class defines the message protection policies for specific Targets.

    This class is used to associate a message protection policy with targets within a message. Message targets are represented using an implementation of the Target interface matched to the message types in MessageInfo. The message protection policy is identified by an implementation of the ProtectionPolicy interface.

    See Also:
    ClientAuthModule, ServerAuthModule
    • Constructor Detail

      • TargetPolicy

        public TargetPolicy(MessagePolicy.Target[] targets,
                            MessagePolicy.ProtectionPolicy protectionPolicy)
        Create a TargetPolicy instance with an array of Targets and with a ProtectionPolicy.
        Parameters:
        targets - An array of Targets. This argument may be null.
        protectionPolicy - The object that describes the message authentication policy that applies to the targets.
        Throws:
        IllegalArgumentException - if the specified targets or protectionPolicy is null.
    • Method Detail

      • getTargets

        public MessagePolicy.Target[] getTargets()
        Get the array of layer-specific target descriptors that identify the one or more message parts to which the specified message protection policy applies.
        Returns:
        An array of Target that identify targets within a message. This method returns null when the specified policy applies to the whole message (excluding any metadata added to the message to satisfy the policy). This method never returns a zero-length array.
      • getProtectionPolicy

        public MessagePolicy.ProtectionPolicy getProtectionPolicy()
        Get the ProtectionPolicy that applies to the targets.
        Returns:
        A ProtectionPolicy object that identifies the message authentication requirements that apply to the targets.

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 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/security/auth/message/MessagePolicy.TargetPolicy.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/en/java/, Class MessagePolicy.TargetPolicy

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 van 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.