1 4 11 14 package javax.xml.crypto.dsig; 15 16 import javax.xml.crypto.KeySelector; 17 import javax.xml.crypto.KeySelectorResult; 18 import javax.xml.crypto.MarshalException; 19 import javax.xml.crypto.XMLStructure; 20 import javax.xml.crypto.dsig.keyinfo.KeyInfo; 21 import java.security.Signature ; 22 import java.util.List ; 23 24 64 public interface XMLSignature extends XMLStructure { 65 66 70 final static String XMLNS = "http://www.w3.org/2000/09/xmldsig#"; 71 72 93 boolean validate(XMLValidateContext validateContext) 94 throws XMLSignatureException; 95 96 101 KeyInfo getKeyInfo(); 102 103 108 SignedInfo getSignedInfo(); 109 110 117 List getObjects(); 118 119 124 String getId(); 125 126 131 SignatureValue getSignatureValue(); 132 133 149 void sign(XMLSignContext signContext) throws MarshalException, 150 XMLSignatureException; 151 152 160 KeySelectorResult getKeySelectorResult(); 161 162 182 public interface SignatureValue extends XMLStructure { 183 191 String getId(); 192 193 201 byte[] getValue(); 202 203 220 boolean validate(XMLValidateContext validateContext) 221 throws XMLSignatureException; 222 } 223 } 224 | Popular Tags |