1 /* 2 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3 */ 4 /* 5 * $Id: XMLSignContext.java,v 1.8 2005/05/10 16:03:48 mullan Exp $ 6 */ 7 package javax.xml.crypto.dsig; 8 9 import javax.xml.crypto.KeySelector; 10 import javax.xml.crypto.XMLCryptoContext; 11 12 /** 13 * Contains context information for generating XML Signatures. This interface 14 * is primarily intended for type-safety. 15 * 16 * <p>Note that <code>XMLSignContext</code> instances can contain 17 * information and state specific to the XML signature structure it is 18 * used with. The results are unpredictable if an 19 * <code>XMLSignContext</code> is used with different signature structures 20 * (for example, you should not use the same <code>XMLSignContext</code> 21 * instance to sign two different {@link XMLSignature} objects). 22 * <p> 23 * <b><a name="Supported Properties"></a>Supported Properties</b> 24 * <p>The following properties can be set using the 25 * {@link #setProperty setProperty} method. 26 * <ul> 27 * <li><code>javax.xml.crypto.dsig.cacheReference</code>: value must be a 28 * {@link Boolean}. This property controls whether or not the digested 29 * {@link Reference} objects will cache the dereferenced content and 30 * pre-digested input for subsequent retrieval via the 31 * {@link Reference#getDereferencedData Reference.getDereferencedData} and 32 * {@link Reference#getDigestInputStream Reference.getDigestInputStream} 33 * methods. The default value if not specified is 34 * <code>Boolean.FALSE</code>. 35 * </ul> 36 * 37 * @author Sean Mullan 38 * @author JSR 105 Expert Group 39 * @since 1.6 40 * @see XMLSignature#sign(XMLSignContext) 41 */ 42 public interface XMLSignContext extends XMLCryptoContext {} 43