public class CommitmentTypeIndicationImpl extends XadesDOMStructure implements CommitmentTypeIndication
CommitmentTypeIndication
property that
supports the DOM XML representation and processing mechanism.implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED
PROOF_OF_APPROVAL, PROOF_OF_CREATION, PROOF_OF_DELIVERY, PROOF_OF_ORIGIN, PROOF_OF_RECEIPT, PROOF_OF_SENDER
Constructor and Description |
---|
CommitmentTypeIndicationImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
CommitmentTypeIndicationImpl
with the specified provider configuration, context and node. |
CommitmentTypeIndicationImpl(ObjectIdentifierImpl commitmentTypeId,
List objectReferences,
List commitmentTypeQualifiers)
Creates a new instance of this
CommitmentTypeIndicationImpl
with the specified provider configuration, commitment type identifier,
object references and commitment type qualifiers. |
Modifier and Type | Method and Description |
---|---|
ObjectIdentifier |
getCommitmentTypeId()
Returns the commitment type id.
|
List |
getCommitmentTypeQualifiers()
Returns the list of
CommitmentTypeQualifier s. |
String |
getLocalName() |
List |
getObjectReferences()
Returns the object references.
|
boolean |
isAllSignedDataObjects()
Returns
true if this CommitmentTypeIndication is
specified for all signed data objects; otherwise false . |
Node |
marshal(DOMCryptoContext context,
Node parent,
Node nextSibling) |
protected void |
putChildStructure(iaik.xml.crypto.dom.DOMStructure childStructure) |
protected void |
unmarshalStructures(NodeList nodes,
DOMCryptoContext context) |
getInstance, getNamespace, getParentQualifyingPropertiesOf, getParentSignatureOf
addBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshalAttributes, marshalElement, marshalIDAttribute, newIDforLookUp, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalAttributes, unmarshalElement, unmarshalIDAttribute, wrapNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFeatureSupported
public CommitmentTypeIndicationImpl(DOMCryptoContext context, Node node) throws MarshalException
CommitmentTypeIndicationImpl
with the specified provider configuration, context and node.context
- the contextnode
- the node to unmarshal fromMarshalException
- if an exception occurs during unmarshalingpublic CommitmentTypeIndicationImpl(ObjectIdentifierImpl commitmentTypeId, List objectReferences, List commitmentTypeQualifiers)
CommitmentTypeIndicationImpl
with the specified provider configuration, commitment type identifier,
object references and commitment type qualifiers.commitmentTypeId
- the commitment type identifierobjectReferences
- a list of String
s representing URIs (may be
null
)commitmentTypeQualifiers
- a list of CommitmentTypeQualifierImpl
s (may be
null
)NullPointerException
- if commitmentTypeId
is null
IllegalArgumentException
- if objectReferences
contains any URIs that are not RFC
2396ClassCastException
- if objectReferences
contains any elements not of type
String
ClassCastException
- if commitmentTypequlifiers
contains any elements not
of type CommitmentTypeQualifierImpl
spublic ObjectIdentifier getCommitmentTypeId()
CommitmentTypeIndication
getCommitmentTypeId
in interface CommitmentTypeIndication
CommitmentTypeId
CommitmentTypeIndication.getCommitmentTypeId()
public List getObjectReferences()
CommitmentTypeIndication
getObjectReferences
in interface CommitmentTypeIndication
DOMURIReference
s, each
referencing a <ds:Reference> element of the
<ds:Reference> signed data object.CommitmentTypeIndication.getObjectReferences()
public boolean isAllSignedDataObjects()
CommitmentTypeIndication
true
if this CommitmentTypeIndication
is
specified for all signed data objects; otherwise false
.isAllSignedDataObjects
in interface CommitmentTypeIndication
true
if this CommitmentTypeIndication
is
specified for all signed data objects; otherwise false
CommitmentTypeIndication.isAllSignedDataObjects()
public List getCommitmentTypeQualifiers()
CommitmentTypeIndication
CommitmentTypeQualifier
s.getCommitmentTypeQualifiers
in interface CommitmentTypeIndication
CommitmentTypeQualifier
sCommitmentTypeIndication.getCommitmentTypeQualifiers()
public String getLocalName()
getLocalName
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.getLocalName()
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 unmarshalStructures(NodeList nodes, DOMCryptoContext context) throws MarshalException
unmarshalStructures
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.unmarshalStructures(org.w3c.dom.NodeList,
DOMCryptoContext)
protected void putChildStructure(iaik.xml.crypto.dom.DOMStructure childStructure) throws MarshalException
putChildStructure
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.putChildStructure(DOMStructure)
© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC