Class DOMX509Data
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.DOMStructure
org.apache.jcp.xml.dsig.internal.dom.DOMX509Data
- All Implemented Interfaces:
X509Data,XMLStructure
DOM-based implementation of X509Data.
-
Field Summary
Fields inherited from interface javax.xml.crypto.dsig.keyinfo.X509Data
RAW_X509_CERTIFICATE_TYPE, TYPE -
Constructor Summary
ConstructorsConstructorDescriptionDOMX509Data(List<?> content) Creates a DOMX509Data.DOMX509Data(Element xdElem) Creates aDOMX509Datafrom an element. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidmarshal(Node parent, String dsPrefix, DOMCryptoContext context) Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
isFeatureSupportedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
Constructor Details
-
DOMX509Data
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, orjavax.xml.dsig.XMLStructureobjects 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
Creates aDOMX509Datafrom an element.- Parameters:
xdElem- an X509Data element- Throws:
MarshalException- if there is an error while unmarshalling
-
-
Method Details
-
getContent
- Specified by:
getContentin interfaceX509Data
-
marshal
- Specified by:
marshalin classDOMStructure- Throws:
MarshalException
-
equals
-
hashCode
public int hashCode()
-