1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24//i20156 - new file for xmlsecurity module
25
26/** -- idl definition -- **/
27
28#ifndef __com_sun_star_xml_crypto_xxmlsignaturetemplate_idl_
29#define __com_sun_star_xml_crypto_xxmlsignaturetemplate_idl_
30
31#include <com/sun/star/uno/XInterface.idl>
32#include <com/sun/star/lang/IllegalArgumentException.idl>
33
34#include <com/sun/star/xml/wrapper/XXMLElementWrapper.idl>
35#include <com/sun/star/xml/crypto/XUriBinding.idl>
36#include <com/sun/star/xml/crypto/XXMLSecurityTemplate.idl>
37
38module com { module sun { module star { module xml { module crypto {
39
40/**
41 * Interface of XML signature template
42 *
43 * <p>This interface represents a signature template, which is the same as the
44 * desired xml signature element but some of the nodes may be empty. The empty
45 * entities include digest value and signature value. Empty entities are not
46 * allowed in a signature template when performing validation.</p>
47 *
48 * <p>In some cases, the signer or vertifier can dertermine and locate the
49 * contents to be signed from the template by dereference the URI.</p>
50 *
51 * <p>With the help of signature context, the signer or verifier specifies the
52 * key from the KeyInfo in the signature template.</p>
53 *
54 * Owner: Andrew Fan
55 */
56interface XXMLSignatureTemplate : XXMLSecurityTemplate
57{
58	/**
59	 * Get the target xml element, i.e. the element to be signed
60	 */
61	sequence< com::sun::star::xml::wrapper::XXMLElementWrapper > getTargets(
62	) ;
63
64	/**
65	 * Set the dynamic URI binding
66	 */
67	void setBinding(
68		[in] com::sun::star::xml::crypto::XUriBinding aUriBinding
69	) raises( com::sun::star::lang::IllegalArgumentException ) ;
70
71	/**
72	 * Get the dynamic URI binding
73	 */
74	com::sun::star::xml::crypto::XUriBinding getBinding( ) ;
75} ;
76
77} ; } ; } ; } ; } ;
78
79
80#endif
81
82