0N/A/*
0N/A * reserved comment block
0N/A * DO NOT REMOVE OR ALTER!
0N/A */
0N/A/*
0N/A * Copyright 2003-2004 The Apache Software Foundation.
0N/A *
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 *
0N/A * http://www.apache.org/licenses/LICENSE-2.0
0N/A *
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 *
0N/A */
0N/Apackage com.sun.org.apache.xml.internal.security.encryption;
0N/A
0N/A
0N/Aimport java.util.Iterator;
0N/A
0N/A
0N/A/**
0N/A * <code>EncryptionProperties</code> can hold additional information concerning
0N/A * the generation of the <code>EncryptedData</code> or
0N/A * <code>EncryptedKey</code>. This information is wraped int an
0N/A * <code>EncryptionProperty</code> element. Examples of additional information
0N/A * is e.g., a date/time stamp or the serial number of cryptographic hardware
0N/A * used during encryption).
0N/A * <p>
0N/A * It is defined as follows:
0N/A * <xmp>
0N/A * <element name='EncryptionProperties' type='xenc:EncryptionPropertiesType'/>
0N/A * <complexType name='EncryptionPropertiesType'>
0N/A * <sequence>
0N/A * <element ref='xenc:EncryptionProperty' maxOccurs='unbounded'/>
0N/A * </sequence>
0N/A * <attribute name='Id' type='ID' use='optional'/>
0N/A * </complexType>
0N/A * </xmp>
0N/A *
0N/A * @author Axl Mattheus
0N/A */
0N/Apublic interface EncryptionProperties {
0N/A /**
0N/A * Returns the <code>EncryptionProperties</code>' id.
0N/A *
0N/A * @return the id.
0N/A */
0N/A String getId();
0N/A
0N/A /**
0N/A * Sets the id.
0N/A *
0N/A * @param id the id.
0N/A */
0N/A void setId(String id);
0N/A
0N/A /**
0N/A * Returns an <code>Iterator</code> over all the
0N/A * <code>EncryptionPropterty</code> elements contained in this
0N/A * <code>EncryptionProperties</code>.
0N/A *
0N/A * @return an <code>Iterator</code> over all the encryption properties.
0N/A */
0N/A Iterator getEncryptionProperties();
0N/A
0N/A /**
0N/A * Adds an <code>EncryptionProperty</code>.
0N/A *
0N/A * @param property.
0N/A */
0N/A void addEncryptionProperty(EncryptionProperty property);
0N/A
0N/A /**
0N/A * Removes the specified <code>EncryptionProperty</code>.
0N/A *
0N/A * @param property.
0N/A */
0N/A void removeEncryptionProperty(EncryptionProperty property);
0N/A}