Path: blob/master/src/java.xml.crypto/share/classes/javax/xml/crypto/dsig/XMLValidateContext.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: XMLValidateContext.java,v 1.8 2005/05/10 16:03:49 mullan Exp $26*/27package javax.xml.crypto.dsig;2829import javax.xml.crypto.XMLCryptoContext;3031/**32* Contains context information for validating XML Signatures. This interface33* is primarily intended for type-safety.34*35* <p>Note that <code>XMLValidateContext</code> instances can contain36* information and state specific to the XML signature structure it is37* used with. The results are unpredictable if an38* <code>XMLValidateContext</code> is used with different signature structures39* (for example, you should not use the same <code>XMLValidateContext</code>40* instance to validate two different {@link XMLSignature} objects).41* <p>42* <b><a id="SupportedProperties"></a>Supported Properties</b>43* <p>The following properties can be set by an application using the44* {@link #setProperty setProperty} method.45* <ul>46* <li><code>javax.xml.crypto.dsig.cacheReference</code>: value must be a47* {@link Boolean}. This property controls whether or not the48* {@link Reference#validate Reference.validate} method will cache the49* dereferenced content and pre-digested input for subsequent retrieval via50* the {@link Reference#getDereferencedData Reference.getDereferencedData}51* and {@link Reference#getDigestInputStream52* Reference.getDigestInputStream} methods. The default value if not53* specified is <code>Boolean.FALSE</code>.54* </ul>55*56* @author Sean Mullan57* @author JSR 105 Expert Group58* @since 1.659* @see XMLSignature#validate(XMLValidateContext)60* @see Reference#validate(XMLValidateContext)61*/62public interface XMLValidateContext extends XMLCryptoContext {}636465