blob: 307a13425958e9158c0eaf2b987e9fa8c9678f83 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001/*
2 * reserved comment block
3 * DO NOT REMOVE OR ALTER!
4 */
5/*
6 * Copyright 2003-2004 The Apache Software Foundation.
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 *
20 */
21package com.sun.org.apache.xml.internal.security.encryption;
22
23
24import java.util.Iterator;
25
26
27/**
28 * <code>EncryptionProperties</code> can hold additional information concerning
29 * the generation of the <code>EncryptedData</code> or
30 * <code>EncryptedKey</code>. This information is wraped int an
31 * <code>EncryptionProperty</code> element. Examples of additional information
32 * is e.g., a date/time stamp or the serial number of cryptographic hardware
33 * used during encryption).
34 * <p>
35 * It is defined as follows:
36 * <xmp>
37 * <element name='EncryptionProperties' type='xenc:EncryptionPropertiesType'/>
38 * <complexType name='EncryptionPropertiesType'>
39 * <sequence>
40 * <element ref='xenc:EncryptionProperty' maxOccurs='unbounded'/>
41 * </sequence>
42 * <attribute name='Id' type='ID' use='optional'/>
43 * </complexType>
44 * </xmp>
45 *
46 * @author Axl Mattheus
47 */
48public interface EncryptionProperties {
49 /**
50 * Returns the <code>EncryptionProperties</code>' id.
51 *
52 * @return the id.
53 */
54 String getId();
55
56 /**
57 * Sets the id.
58 *
59 * @param id the id.
60 */
61 void setId(String id);
62
63 /**
64 * Returns an <code>Iterator</code> over all the
65 * <code>EncryptionPropterty</code> elements contained in this
66 * <code>EncryptionProperties</code>.
67 *
68 * @return an <code>Iterator</code> over all the encryption properties.
69 */
70 Iterator getEncryptionProperties();
71
72 /**
73 * Adds an <code>EncryptionProperty</code>.
74 *
75 * @param property.
76 */
77 void addEncryptionProperty(EncryptionProperty property);
78
79 /**
80 * Removes the specified <code>EncryptionProperty</code>.
81 *
82 * @param property.
83 */
84 void removeEncryptionProperty(EncryptionProperty property);
85}