public class CRLIdentifierImpl extends XadesDOMStructure implements CRLIdentifier, DOMURIReference
CRLIdentifier
element that supports the
DOM XML processing and representation mechanism.Constructor and Description |
---|
CRLIdentifierImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
CRLIdentifierImpl with the
given context and node. |
CRLIdentifierImpl(Principal issuer,
Date issuerTime,
BigInteger number,
String uri)
Creates a new instance of this
CRLIdentifierImpl with the
given issuer DN, issuer time, number and URI reference. |
CRLIdentifierImpl(String issuer,
Date issuerTime,
BigInteger number,
String uri)
Creates a new instance of this
CRLIdentifierImpl with the
given issuer DN, issuer time, number and URI reference. |
Modifier and Type | Method and Description |
---|---|
Node |
getHere() |
String |
getIssuer()
Returns the issuer distinguished name.
|
Date |
getIssuerTime()
Returns the issuer time.
|
String |
getLocalName() |
BigInteger |
getNumber()
Returns the CRL number.
|
String |
getType() |
String |
getURI()
Returns the URI where a copy of the CRL may be obtained.
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFeatureSupported
public CRLIdentifierImpl(DOMCryptoContext context, Node node) throws MarshalException
CRLIdentifierImpl
with the
given context and node.context
- the contextnode
- the node to unmarshal fromMarshalException
- if an exception occurs during unmarshalingpublic CRLIdentifierImpl(String issuer, Date issuerTime, BigInteger number, String uri)
CRLIdentifierImpl
with the
given issuer DN, issuer time, number and URI reference.issuer
- the issuer DN (must be RFC 2253 complaint string)issuerTime
- the issuer timenumber
- the CRL number (may be null
)uri
- the URI reference (may be null
)NullPointerException
- if config
, issuer
or
issuerTime
is null
public CRLIdentifierImpl(Principal issuer, Date issuerTime, BigInteger number, String uri)
CRLIdentifierImpl
with the
given issuer DN, issuer time, number and URI reference.issuer
- the issuer DNissuerTime
- the issuer timenumber
- the CRL number (may be null
)uri
- the URI reference (may be null
)NullPointerException
- if config
, issuer
or
issuerTime
is null
public String getIssuer()
CRLIdentifier
getIssuer
in interface CRLIdentifier
CRLIdentifier.getIssuer()
public Date getIssuerTime()
CRLIdentifier
getIssuerTime
in interface CRLIdentifier
CRLIdentifier.getIssuerTime()
public BigInteger getNumber()
CRLIdentifier
getNumber
in interface CRLIdentifier
CRLIdentifier.getNumber()
public String getURI()
CRLIdentifier
getURI
in interface CRLIdentifier
getURI
in interface URIReference
URI
-attribute valueURIReference.getURI()
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