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/Aimport org.w3c.dom.Element;
0N/A
0N/A/**
0N/A * Additional information items concerning the generation of the
0N/A * <code>EncryptedData</code> or <code>EncryptedKey</code> can be placed in an
0N/A * <code>EncryptionProperty</code> element (e.g., date/time stamp or the serial
0N/A * number of cryptographic hardware used during encryption). The Target
0N/A * attribute identifies the <code>EncryptedType</code> structure being
0N/A * described. anyAttribute permits the inclusion of attributes from the XML
0N/A * namespace to be included (i.e., <code>xml:space</code>,
0N/A * <code>xml:lang</code>, and <code>xml:base</code>).
0N/A * <p>
0N/A * It is defined as follows:
0N/A * <xmp>
0N/A * <element name='EncryptionProperty' type='xenc:EncryptionPropertyType'/>
0N/A * <complexType name='EncryptionPropertyType' mixed='true'>
0N/A * <choice maxOccurs='unbounded'>
0N/A * <any namespace='##other' processContents='lax'/>
0N/A * </choice>
0N/A * <attribute name='Target' type='anyURI' use='optional'/>
0N/A * <attribute name='Id' type='ID' use='optional'/>
0N/A * <anyAttribute namespace="http://www.w3.org/XML/1998/namespace"/>
0N/A * </complexType>
0N/A * </xmp>
0N/A *
0N/A * @author Axl Mattheus
0N/A */
0N/Apublic interface EncryptionProperty {
0N/A /**
0N/A * Returns the <code>EncryptedType</code> being described.
0N/A *
0N/A * @return the <code>EncryptedType</code> being described by this
0N/A * <code>EncryptionProperty</code>.
0N/A */
0N/A String getTarget();
0N/A
0N/A /**
0N/A * Sets the target.
0N/A *
0N/A * @param target.
0N/A */
0N/A void setTarget(String target);
0N/A
0N/A /**
0N/A * Returns the id of the <CODE>EncryptionProperty</CODE>.
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.
0N/A */
0N/A void setId(String id);
0N/A
0N/A /**
0N/A * Returns the attribute's value in the <code>xml</code> namespace.
0N/A *
0N/A * @param attribute
0N/A * @return the attribute's value.
0N/A */
0N/A String getAttribute(String attribute);
0N/A
0N/A /**
0N/A * Set the attribute value.
0N/A *
0N/A * @param attribute the attribute's name.
0N/A * @param value the attribute's value.
0N/A */
0N/A void setAttribute(String attribute, String value);
0N/A
0N/A /**
0N/A * Returns the properties of the <CODE>EncryptionProperty</CODE>.
0N/A *
0N/A * @return an <code>Iterator</code> over all the addiitonal encryption
0N/A * information contained in this class.
0N/A */
0N/A Iterator getEncryptionInformation();
0N/A
0N/A /**
0N/A * Adds encryption information.
0N/A *
0N/A * @param information the additional encryption information.
0N/A */
0N/A void addEncryptionInformation(Element information);
0N/A
0N/A /**
0N/A * Removes encryption information.
0N/A *
0N/A * @param information the information to remove.
0N/A */
0N/A void removeEncryptionInformation(Element information);
0N/A}