- java.lang.Object
-
- org.apache.jcp.xml.dsig.internal.dom.DOMStructure
-
- org.apache.jcp.xml.dsig.internal.dom.DOMX509Data
-
- All Implemented Interfaces:
X509Data,XMLStructure
public final class DOMX509Data extends DOMStructure implements X509Data
DOM-based implementation of X509Data.
-
-
Field Summary
-
Fields inherited from interface javax.xml.crypto.dsig.keyinfo.X509Data
RAW_X509_CERTIFICATE_TYPE, TYPE
-
-
Constructor Summary
Constructors Constructor Description DOMX509Data(List<?> content)Creates a DOMX509Data.DOMX509Data(Element xdElem)Creates aDOMX509Datafrom an element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<Object>getContent()inthashCode()voidmarshal(Node parent, String dsPrefix, DOMCryptoContext context)-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
equalsContent, isFeatureSupported
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
-
-
-
Constructor Detail
-
DOMX509Data
public DOMX509Data(List<?> content)
Creates a DOMX509Data.- Parameters:
content- a list of one or more X.509 data types. Valid types areString(subject names),byte[](subject key ids),X509Certificate,X509CRL, orXMLStructureobjects or elements from an external namespace). The list is defensively copied to protect against subsequent modification.- Throws:
NullPointerException- ifcontentisnullIllegalArgumentException- ifcontentis emptyClassCastException- ifcontentcontains any entries that are not of one of the valid types mentioned above
-
DOMX509Data
public DOMX509Data(Element xdElem) throws MarshalException
Creates aDOMX509Datafrom an element.- Parameters:
xdElem- an X509Data element- Throws:
MarshalException- if there is an error while unmarshalling
-
-
Method Detail
-
getContent
public List<Object> getContent()
- Specified by:
getContentin interfaceX509Data
-
marshal
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
- Specified by:
marshalin classDOMStructure- Throws:
MarshalException
-
-