public class SignaturePolicyIdentifierImpl extends XadesDOMStructure implements SignaturePolicyIdentifier
SignaturePolicyIdentifier
property
thats supports the DOM XML processing and representation mechanism.Constructor and Description |
---|
SignaturePolicyIdentifierImpl(DOMCryptoContext context,
Node node) |
SignaturePolicyIdentifierImpl(SignaturePolicyId signaturePolicyId) |
Modifier and Type | Method and Description |
---|---|
protected List |
getChildStructures() |
String |
getLocalName() |
XAdESSignature |
getPolicedSignature() |
SignaturePolicyId |
getSignaturePolicyId()
Returns the
SignaturePolicy contained or null if
no signature policy has been specified. |
boolean |
isImplied()
Returns
true if the signature policy is implied by the signed
data and no explicit signature policy has been specified, else
false . |
protected void |
putChildStructure(iaik.xml.crypto.dom.DOMStructure childStructure) |
String |
toString() |
protected void |
unmarshalStructures(NodeList nodes,
DOMCryptoContext context)
Unmarshals
DOMStructure s from the given nodes . |
getInstance, getNamespace, getParentQualifyingPropertiesOf, getParentSignatureOf
addBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalAttributes, marshalElement, marshalIDAttribute, newIDforLookUp, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, unmarshal, unmarshalAttributes, unmarshalElement, unmarshalIDAttribute, wrapNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFeatureSupported
public SignaturePolicyIdentifierImpl(DOMCryptoContext context, Node node) throws MarshalException
MarshalException
public SignaturePolicyIdentifierImpl(SignaturePolicyId signaturePolicyId)
signaturePolicyId
- public String getLocalName()
getLocalName
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.getLocalName()
public boolean isImplied()
SignaturePolicyIdentifier
true
if the signature policy is implied by the signed
data and no explicit signature policy has been specified, else
false
.isImplied
in interface SignaturePolicyIdentifier
true
if no signature plicy has been specified, else
false
SignaturePolicyIdentifier.isImplied()
public SignaturePolicyId getSignaturePolicyId()
SignaturePolicyIdentifier
SignaturePolicy
contained or null
if
no signature policy has been specified.getSignaturePolicyId
in interface SignaturePolicyIdentifier
SignaturePolicy
or null
if no
signature policy has been specifiedSignaturePolicyIdentifier.getSignaturePolicyId()
public String toString()
toString
in class iaik.xml.crypto.dom.DOMStructure
Object.toString()
protected List getChildStructures()
getChildStructures
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.getChildStructures()
protected void putChildStructure(iaik.xml.crypto.dom.DOMStructure childStructure) throws MarshalException
putChildStructure
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.putChildStructure(DOMStructure)
protected void unmarshalStructures(NodeList nodes, DOMCryptoContext context) throws MarshalException
DOMStructure
s from the given nodes
.
This method is called by DOMStructure.unmarshal(DOMCryptoContext)
.
This method calls DOMStructure.getInstance(Node, DOMCryptoContext)
for every
Element
in the list of nodes
. If
DOMStructure.getInstance(Node, DOMCryptoContext)
returns a
DOMStructure
putChildStructure(DOMStructure)
is
called with the returned DOMStructure
as parameter.
unmarshalStructures
in class iaik.xml.crypto.dom.DOMStructure
nodes
- the nodes to unmarshal fromcontext
- the marshal contextMarshalException
- if an exception occurs during marshalingpublic XAdESSignature getPolicedSignature() throws XMLSignatureException
XMLSignatureException
© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC