Class SignedInfo


  • public class SignedInfo
    extends Manifest
    Handles <ds:SignedInfo> elements This SignedInfo element includes the canonicalization algorithm, a signature algorithm, and one or more references.
    • Field Detail

      • signatureAlgorithm

        private final SignatureAlgorithm signatureAlgorithm
        Field signatureAlgorithm
      • c14nizedBytes

        private byte[] c14nizedBytes
        Field c14nizedBytes
      • c14nMethod

        private org.w3c.dom.Element c14nMethod
      • signatureMethod

        private org.w3c.dom.Element signatureMethod
    • Constructor Detail

      • SignedInfo

        public SignedInfo​(org.w3c.dom.Document doc,
                          java.lang.String signatureMethodURI,
                          java.lang.String canonicalizationMethodURI)
                   throws XMLSecurityException
        Constructs SignedInfo using given Canonicalization algorithm and Signature algorithm.
        Parameters:
        doc - SignedInfo is placed in this document
        signatureMethodURI - URI representation of the Digest and Signature algorithm
        canonicalizationMethodURI - URI representation of the Canonicalization method
        Throws:
        XMLSecurityException
      • SignedInfo

        public SignedInfo​(org.w3c.dom.Document doc,
                          java.lang.String signatureMethodURI,
                          java.lang.String canonicalizationMethodURI,
                          java.security.Provider provider)
                   throws XMLSecurityException
        Constructs SignedInfo using given Canonicalization algorithm and Signature algorithm.
        Parameters:
        doc - SignedInfo is placed in this document
        signatureMethodURI - URI representation of the Digest and Signature algorithm
        canonicalizationMethodURI - URI representation of the Canonicalization method
        provider - security provider to use
        Throws:
        XMLSecurityException
      • SignedInfo

        public SignedInfo​(org.w3c.dom.Document doc,
                          java.lang.String signatureMethodURI,
                          int hMACOutputLength,
                          java.lang.String canonicalizationMethodURI)
                   throws XMLSecurityException
        Constructor SignedInfo
        Parameters:
        doc - SignedInfo is placed in this document
        signatureMethodURI - URI representation of the Digest and Signature algorithm
        hMACOutputLength -
        canonicalizationMethodURI - URI representation of the Canonicalization method
        Throws:
        XMLSecurityException
      • SignedInfo

        public SignedInfo​(org.w3c.dom.Document doc,
                          java.lang.String signatureMethodURI,
                          int hMACOutputLength,
                          java.lang.String canonicalizationMethodURI,
                          java.security.Provider provider,
                          java.security.spec.AlgorithmParameterSpec spec)
                   throws XMLSecurityException
        Constructs SignedInfo using given Canonicalization algorithm and Signature algorithm.
        Parameters:
        doc - SignedInfo is placed in this document
        signatureMethodURI - URI representation of the Digest and Signature algorithm
        hMACOutputLength -
        canonicalizationMethodURI - URI representation of the Canonicalization method
        provider - security provider to use
        spec - AlgorithmParameterSpec to use
        Throws:
        XMLSecurityException
      • SignedInfo

        public SignedInfo​(org.w3c.dom.Document doc,
                          org.w3c.dom.Element signatureMethodElem,
                          org.w3c.dom.Element canonicalizationMethodElem)
                   throws XMLSecurityException
        Parameters:
        doc -
        signatureMethodElem -
        canonicalizationMethodElem -
        Throws:
        XMLSecurityException
      • SignedInfo

        public SignedInfo​(org.w3c.dom.Document doc,
                          org.w3c.dom.Element signatureMethodElem,
                          org.w3c.dom.Element canonicalizationMethodElem,
                          java.security.Provider provider)
                   throws XMLSecurityException
        Throws:
        XMLSecurityException
      • SignedInfo

        public SignedInfo​(org.w3c.dom.Element element,
                          java.lang.String baseURI,
                          boolean secureValidation)
                   throws XMLSecurityException
        Build a SignedInfo from an Element
        Parameters:
        element - SignedInfo
        baseURI - the URI of the resource where the XML instance was stored
        secureValidation - whether secure validation is enabled or not
        Throws:
        XMLSecurityException
        See Also:
        Question, Answer
      • SignedInfo

        public SignedInfo​(org.w3c.dom.Element element,
                          java.lang.String baseURI,
                          boolean secureValidation,
                          java.security.Provider provider)
                   throws XMLSecurityException
        Build a SignedInfo from an Element
        Parameters:
        element - SignedInfo
        baseURI - the URI of the resource where the XML instance was stored
        secureValidation - whether secure validation is enabled or not
        provider - security provider to use
        Throws:
        XMLSecurityException
        See Also:
        Question, Answer