javax.xml.crypto.dsig.dom.DOMValidateContext Maven / Gradle / Ivy
The newest version!
/* */ package javax.xml.crypto.dsig.dom;
/* */
/* */ import java.security.Key;
/* */ import javax.xml.crypto.KeySelector;
/* */ import javax.xml.crypto.dom.DOMCryptoContext;
/* */ import javax.xml.crypto.dsig.XMLValidateContext;
/* */ import org.w3c.dom.Node;
/* */
/* */ public class DOMValidateContext extends DOMCryptoContext
/* */ implements XMLValidateContext
/* */ {
/* */ private Node node;
/* */
/* */ public DOMValidateContext(KeySelector ks, Node node)
/* */ {
/* 52 */ if (ks == null) {
/* 53 */ throw new NullPointerException("key selector is null");
/* */ }
/* 55 */ if (node == null) {
/* 56 */ throw new NullPointerException("node is null");
/* */ }
/* 58 */ setKeySelector(ks);
/* 59 */ this.node = node;
/* */ }
/* */
/* */ public DOMValidateContext(Key validatingKey, Node node)
/* */ {
/* 75 */ if (validatingKey == null) {
/* 76 */ throw new NullPointerException("validatingKey is null");
/* */ }
/* 78 */ if (node == null) {
/* 79 */ throw new NullPointerException("node is null");
/* */ }
/* 81 */ setKeySelector(KeySelector.singletonKeySelector(validatingKey));
/* 82 */ this.node = node;
/* */ }
/* */
/* */ public void setNode(Node node)
/* */ {
/* 93 */ if (node == null) {
/* 94 */ throw new NullPointerException();
/* */ }
/* 96 */ this.node = node;
/* */ }
/* */
/* */ public Node getNode()
/* */ {
/* 106 */ return this.node;
/* */ }
/* */ }
/* Location: E:\HYN\Java\trunk\ref\lib-dep\xmldsig\xmldsig.jar
* Qualified Name: javax.xml.crypto.dsig.dom.DOMValidateContext
* JD-Core Version: 0.6.2
*/