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/**
0N/A * A wrapper for a pointer from a key value of an <code>EncryptedKey</code> to
0N/A * items encrypted by that key value (<code>EncryptedData</code> or
0N/A * <code>EncryptedKey</code> elements).
0N/A * <p>
0N/A * It is defined as follows:
0N/A * <xmp>
0N/A * <complexType name='ReferenceType'>
0N/A * <sequence>
0N/A * <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/>
0N/A * </sequence>
0N/A * <attribute name='URI' type='anyURI' use='required'/>
0N/A * </complexType>
0N/A * </xmp>
0N/A *
0N/A * @author Axl Mattheus
0N/A * @see ReferenceList
0N/A */
0N/Apublic interface Reference {
0N/A /**
0N/A * Returns a <code>URI</code> that points to an <code>Element</code> that
0N/A * were encrypted using the key defined in the enclosing
0N/A * <code>EncryptedKey</code> element.
0N/A *
0N/A * @return an Uniform Resource Identifier that qualifies an
0N/A * <code>EncryptedType</code>.
0N/A */
0N/A String getURI();
0N/A
0N/A /**
0N/A * Sets a <code>URI</code> that points to an <code>Element</code> that
0N/A * were encrypted using the key defined in the enclosing
0N/A * <code>EncryptedKey</code> element.
0N/A *
0N/A * @param uri the Uniform Resource Identifier that qualifies an
0N/A * <code>EncryptedType</code>.
0N/A */
0N/A void setURI(String uri);
0N/A
0N/A /**
0N/A * Returns an <code>Iterator</code> over all the child elements contained in
0N/A * this <code>Reference</code> that will aid the recipient in retrieving the
0N/A * <code>EncryptedKey</code> and/or <code>EncryptedData</code> elements.
0N/A * These could include information such as XPath transforms, decompression
0N/A * transforms, or information on how to retrieve the elements from a
0N/A * document storage facility.
0N/A *
0N/A * @return child elements.
0N/A */
0N/A Iterator getElementRetrievalInformation();
0N/A
0N/A /**
0N/A * Adds retrieval information.
0N/A *
0N/A * @param info.
0N/A */
0N/A void addElementRetrievalInformation(Element info);
0N/A
0N/A /**
0N/A * Removes the specified retrieval information.
0N/A *
0N/A * @param info.
0N/A */
0N/A void removeElementRetrievalInformation(Element info);
0N/A}