javax.xml.crypto.dsig

Interface XMLSignature

    • Field Detail

      • XMLNS

        static final String XMLNS
        The XML Namespace URI of the W3C Recommendation for XML-Signature Syntax and Processing.
        See Also:
        Constant Field Values
    • Method Detail

      • validate

        boolean validate(XMLValidateContext validateContext)
                         throws XMLSignatureException
        Validates the signature according to the core validation processing rules. This method validates the signature using the existing state, it does not unmarshal and reinitialize the contents of the XMLSignature using the location information specified in the context.

        This method only validates the signature the first time it is invoked. On subsequent invocations, it returns a cached result.

        Parameters:
        validateContext - the validating context
        Returns:
        true if the signature passed core validation, otherwise false
        Throws:
        ClassCastException - if the type of validateContext is not compatible with this XMLSignature
        NullPointerException - if validateContext is null
        XMLSignatureException - if an unexpected error occurs during validation that prevented the validation operation from completing
      • getKeyInfo

        KeyInfo getKeyInfo()
        Returns the key info of this XMLSignature.
        Returns:
        the key info (may be null if not specified)
      • getSignedInfo

        SignedInfo getSignedInfo()
        Returns the signed info of this XMLSignature.
        Returns:
        the signed info (never null)
      • getObjects

        List getObjects()
        Returns an unmodifiable list of XMLObjects contained in this XMLSignature.
        Returns:
        an unmodifiable list of XMLObjects (may be empty but never null)
      • getId

        String getId()
        Returns the optional Id of this XMLSignature.
        Returns:
        the Id (may be null if not specified)
      • getSignatureValue

        XMLSignature.SignatureValue getSignatureValue()
        Returns the signature value of this XMLSignature.
        Returns:
        the signature value
      • getKeySelectorResult

        KeySelectorResult getKeySelectorResult()
        Returns the result of the KeySelector, if specified, after this XMLSignature has been signed or validated.
        Returns:
        the key selector result, or null if a key selector has not been specified or this XMLSignature has not been signed or validated

Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/xml/crypto/dsig/xmlsignature.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut