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 aDOMX509Data
from an element. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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 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.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
Creates aDOMX509Data
from an element.- Parameters:
xdElem
- an X509Data element- Throws:
MarshalException
- if there is an error while unmarshalling
-
-
Method Details
-
getContent
- Specified by:
getContent
in interfaceX509Data
-
marshal
- Specified by:
marshal
in classDOMStructure
- Throws:
MarshalException
-
equals
-
hashCode
public int hashCode()
-