Path: blob/master/src/java.xml.crypto/share/classes/javax/xml/crypto/dsig/XMLSignContext.java
41161 views
/*1* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/24/*25* $Id: XMLSignContext.java,v 1.8 2005/05/10 16:03:48 mullan Exp $26*/27package javax.xml.crypto.dsig;2829import javax.xml.crypto.KeySelector;30import javax.xml.crypto.XMLCryptoContext;3132/**33* Contains context information for generating XML Signatures. This interface34* is primarily intended for type-safety.35*36* <p>Note that <code>XMLSignContext</code> instances can contain37* information and state specific to the XML signature structure it is38* used with. The results are unpredictable if an39* <code>XMLSignContext</code> is used with different signature structures40* (for example, you should not use the same <code>XMLSignContext</code>41* instance to sign two different {@link XMLSignature} objects).42* <p>43* <b><a id="SupportedProperties"></a>Supported Properties</b>44* <p>The following properties can be set using the45* {@link #setProperty setProperty} method.46* <ul>47* <li><code>javax.xml.crypto.dsig.cacheReference</code>: value must be a48* {@link Boolean}. This property controls whether or not the digested49* {@link Reference} objects will cache the dereferenced content and50* pre-digested input for subsequent retrieval via the51* {@link Reference#getDereferencedData Reference.getDereferencedData} and52* {@link Reference#getDigestInputStream Reference.getDigestInputStream}53* methods. The default value if not specified is54* <code>Boolean.FALSE</code>.55* </ul>56*57* @author Sean Mullan58* @author JSR 105 Expert Group59* @since 1.660* @see XMLSignature#sign(XMLSignContext)61*/62public interface XMLSignContext extends XMLCryptoContext {}636465