org.apache.jcp.xml.dsig.internal.dom
Class DOMSignatureProperties
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.BaseStructure
org.apache.jcp.xml.dsig.internal.dom.DOMSignatureProperties
- All Implemented Interfaces:
- SignatureProperties, XMLStructure
public final class DOMSignatureProperties
- extends BaseStructure
- implements SignatureProperties
DOM-based implementation of SignatureProperties.
- Author:
- Sean Mullan
DOMSignatureProperties
public DOMSignatureProperties(List<DOMSignatureProperty> properties,
String id)
- Creates a
DOMSignatureProperties from the specified
parameters.
- Parameters:
properties - a list of one or more SignaturePropertys. The
list is defensively copied to protect against subsequent modification.id - the Id (may be null)
- Throws:
ClassCastException - if properties contains any
entries that are not of type SignatureProperty
IllegalArgumentException - if properties is empty
NullPointerException - if properties
DOMSignatureProperties
public DOMSignatureProperties(Element propsElem)
throws MarshalException
- Creates a
DOMSignatureProperties from an element.
- Parameters:
propsElem - a SignatureProperties element
- Throws:
MarshalException - if a marshalling error occurs
getProperties
public List<SignatureProperty> getProperties()
- Specified by:
getProperties in interface SignatureProperties
getId
public String getId()
- Specified by:
getId in interface SignatureProperties
marshal
public static void marshal(XmlWriter xwriter,
SignatureProperties sigProps,
String dsPrefix,
XMLCryptoContext context)
throws MarshalException
- Throws:
MarshalException
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.