public class OCSPIdentifierImpl extends XadesDOMStructure implements OCSPIdentifier, DOMURIReference
OCSPIdentifier
element that supports
the DOM XML processing and representation mechanism.Constructor and Description |
---|
OCSPIdentifierImpl(byte[] publicKeyHash,
Date producedAt,
String uri)
Creates a new instance of this
OCSPIdentifierImpl with the
specified provider config, responder identifier, produced at date and URI
reference. |
OCSPIdentifierImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
OCSPIdentifierImpl with the
given context and node. |
OCSPIdentifierImpl(String responderId,
Date producedAt,
String uri)
Creates a new instance of this
OCSPIdentifierImpl with the
specified provider config, responder identifier, produced at date and URI
reference. |
Modifier and Type | Method and Description |
---|---|
Node |
getHere() |
String |
getLocalName() |
Date |
getProducedAt()
Returns the producedAt date.
|
ResponderID |
getResponderId()
Returns the OCSP responder ID.
|
String |
getType() |
String |
getURI()
Returns the URI of an archived version of the OCSP response.
|
Node |
marshal(DOMCryptoContext context,
Node parent,
Node nextSibling) |
protected void |
marshalAttributes(DOMCryptoContext context,
Element parent) |
String |
toString() |
protected void |
unmarshalAttributes(NamedNodeMap attributes,
DOMCryptoContext context) |
protected void |
unmarshalStructures(NodeList nodes,
DOMCryptoContext context) |
getInstance, getNamespace, getParentQualifyingPropertiesOf, getParentSignatureOf
addBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshalElement, marshalIDAttribute, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, unmarshal, unmarshalElement, unmarshalIDAttribute, wrapNode
public OCSPIdentifierImpl(DOMCryptoContext context, Node node) throws MarshalException
OCSPIdentifierImpl
with the
given context and node.context
- the contextnode
- the node to unmarshal fromMarshalException
- if an exception occurs during unmarshalingpublic OCSPIdentifierImpl(String responderId, Date producedAt, String uri)
OCSPIdentifierImpl
with the
specified provider config, responder identifier, produced at date and URI
reference.responderId
- the responder identifier (must be a RFC 2253 complaint string)producedAt
- the produced at dateuri
- an URI reference (may be null
)NullPointerException
- if config
, responderId
or
producedAt
is null
IllegalArgumentException
- if responderId
is not RFC 2253 complaintpublic OCSPIdentifierImpl(byte[] publicKeyHash, Date producedAt, String uri)
OCSPIdentifierImpl
with the
specified provider config, responder identifier, produced at date and URI
reference.publicKeyHash
- the responder identifier (must be a RFC 2253 complaint string)producedAt
- the produced at dateuri
- an URI reference (may be null
)NullPointerException
- if config
, responderId
or
producedAt
is null
IllegalArgumentException
- if responderId
is not RFC 2253 complaintpublic Date getProducedAt()
OCSPIdentifier
getProducedAt
in interface OCSPIdentifier
public ResponderID getResponderId()
OCSPIdentifier
getResponderId
in interface OCSPIdentifier
public String getURI()
OCSPIdentifier
getURI
in interface OCSPIdentifier
getURI
in interface URIReference
public Node getHere()
getHere
in interface DOMURIReference
getHere
in class iaik.xml.crypto.dom.DOMStructure
{@inheritDoc}
public String getType()
getType
in interface URIReference
URIReference.getType()
public String getLocalName()
getLocalName
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.getLocalName()
protected void marshalAttributes(DOMCryptoContext context, Element parent) throws MarshalException
marshalAttributes
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.marshalAttributes(DOMCryptoContext,
Element)
public Node marshal(DOMCryptoContext context, Node parent, Node nextSibling) throws MarshalException
marshal
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.marshal(DOMCryptoContext, Node, Node)
protected void unmarshalAttributes(NamedNodeMap attributes, DOMCryptoContext context) throws MarshalException
unmarshalAttributes
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.unmarshalAttributes(org.w3c.dom.NamedNodeMap,
DOMCryptoContext)
protected void unmarshalStructures(NodeList nodes, DOMCryptoContext context) throws MarshalException
unmarshalStructures
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.unmarshalStructures(org.w3c.dom.NodeList,
DOMCryptoContext)
public String toString()
toString
in class iaik.xml.crypto.dom.DOMStructure
Object.toString()
© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC