0N/A * reserved comment block 0N/A * DO NOT REMOVE OR ALTER! 0N/A * Copyright 1999-2004 The Apache Software Foundation. 0N/A * Licensed under the Apache License, Version 2.0 (the "License"); 0N/A * you may not use this file except in compliance with the License. 0N/A * You may obtain a copy of the License at 0N/A * Unless required by applicable law or agreed to in writing, software 0N/A * distributed under the License is distributed on an "AS IS" BASIS, 0N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0N/A * See the License for the specific language governing permissions and 0N/A * limitations under the License. 0N/A * Handles <code><ds:SignedInfo></code> elements 0N/A * This <code>SignedInfo<code> element includes the canonicalization algorithm, 661N/A * a signature algorithm, and one or more references. 0N/A * @author Christian Geuer-Pollmann 661N/A /** Field _signatureAlgorithm */ 661N/A /** Field _c14nizedBytes */ 661N/A * Overwrites {@link Manifest#addDocument} because it creates another 661N/A * @param doc the {@link Document} in which <code>XMLsignature</code> will 661N/A * @throws XMLSecurityException 661N/A * Constructs {@link SignedInfo} using given Canonicalization algorithm and 661N/A * @param doc <code>SignedInfo</code> is placed in this document 661N/A * @param signatureMethodURI URI representation of the Digest and 661N/A * @param canonicalizationMethodURI URI representation of the 661N/A * Canonicalization method 661N/A * @throws XMLSecurityException 661N/A * Constructor SignedInfo 661N/A * @param doc <code>SignedInfo</code> is placed in this document 661N/A * @param signatureMethodURI URI representation of the Digest and 661N/A * @param hMACOutputLength 661N/A * @param canonicalizationMethodURI URI representation of the 661N/A * Canonicalization method 661N/A * @throws XMLSecurityException 661N/A * @param signatureMethodElem 661N/A * @param canonicalizationMethodElem 661N/A * @throws XMLSecurityException 661N/A * Build a {@link SignedInfo} from an {@link Element} 661N/A * @param element <code>SignedInfo</code> 661N/A * @param baseURI the URI of the resource where the XML instance was stored 661N/A * @throws XMLSecurityException 661N/A // Parse the Reference children and Id attribute in the Manifest 661N/A /* canonicalize ds:SignedInfo, reparse it into a new document 661N/A * and replace the original not-canonicalized ds:SignedInfo by 661N/A * the re-parsed canonicalized one. 661N/A // the c14n is not a secure one and can rewrite the URIs or like 661N/A // that reparse the SignedInfo to be sure 0N/A * Tests core validation process 0N/A * @return true if verification was successful 0N/A * @throws MissingResourceFailureException 0N/A * @throws XMLSecurityException 0N/A * Tests core validation process 0N/A * @param followManifests defines whether the verification process has to verify referenced <CODE>ds:Manifest</CODE>s, too 0N/A * @return true if verification was successful 0N/A * @throws MissingResourceFailureException 0N/A * @throws XMLSecurityException 0N/A * Returns getCanonicalizedOctetStream 0N/A * @return the canonicalization result octedt stream of <code>SignedInfo</code> element 0N/A * @throws CanonicalizationException 0N/A * @throws InvalidCanonicalizerException 0N/A * @throws XMLSecurityException 0N/A /*&& (this._state == ElementProxy.MODE_SIGN)*/) {
0N/A // make defensive copy 0N/A * Output the C14n stream to the give outputstream. 0N/A * @throws CanonicalizationException 0N/A * @throws InvalidCanonicalizerException 0N/A * @throws XMLSecurityException 0N/A * Returns the Canonicalization method URI 0N/A * @return the Canonicalization method URI 0N/A * Returns the Signature method URI 0N/A * @return the Signature method URI 0N/A * Method getSignatureMethodElement 0N/A * @return gets The SignatureMethod Node. 0N/A * Creates a SecretKey for the appropriate Mac algorithm based on a 0N/A * byte[] array password. 0N/A * @param secretKeyBytes 0N/A * @return the secret key for the SignedInfo element. 0N/A * Method getBaseLocalName