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
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 aDOMX509Data
from an element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<Object>
getContent()
int
hashCode()
void
marshal(Node parent, String dsPrefix, DOMCryptoContext context)
-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
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
, orjavax.xml.dsig.XMLStructure
objects or elements from an external namespace). The list is defensively copied to protect against subsequent modification.- Throws:
NullPointerException
- ifcontent
isnull
IllegalArgumentException
- ifcontent
is emptyClassCastException
- ifcontent
contains any entries that are not of one of the valid types mentioned above
-
DOMX509Data
public DOMX509Data(Element xdElem) throws MarshalException
Creates aDOMX509Data
from 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:
getContent
in interfaceX509Data
-
marshal
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
- Specified by:
marshal
in classDOMStructure
- Throws:
MarshalException
-
-