public class SignaturePolicyStoreImpl extends XadesDOMStructure implements SignaturePolicyStore
SignaturePolicyStore
element which supports the DOM
XML representation and marshaling mechanism.implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED
LOCAL_NAME, LOCAL_NAME_SIG_POLDOC_LOCALURI, LOCAL_NAME_SIGNATURE_POLICY_DOCUMENT, LOCAL_NAME_SPDOC_SPECIFICATION
Constructor and Description |
---|
SignaturePolicyStoreImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
SignaturePolicyStoreImpl with the given
context and node. |
SignaturePolicyStoreImpl(SPDocSpecification sPDocSpecification,
byte[] signaturePolicyDocument,
String id)
Creates the signature policy store with the given technical specification and
the signature policy document.
|
SignaturePolicyStoreImpl(SPDocSpecification sPDocSpecification,
InputStream signaturePolicyDocument,
String id)
Creates the signature policy store with the given technical specification and
the signature policy document.
|
SignaturePolicyStoreImpl(SPDocSpecification sPDocSpecification,
String sigPolDocLocalURI,
String id)
Creates the signature policy store with the given technical specification and
the uri pointing to the local stored signature policy document.
|
Modifier and Type | Method and Description |
---|---|
protected List |
getChildStructures() |
String |
getId()
Returns the
Id -attribute value. |
String |
getLocalName() |
String |
getNamespace()
Returns the namespace URI of the represented XML element.
|
byte[] |
getSignaturePolicyDocument()
Returns the signature policy document retrieved from the base64 encoded
content of the <SignaturePolicyDocument> element.
|
String |
getSigPolDocLocalURI()
Returns the uri to the local stored signature policy document.
|
SPDocSpecification |
getSpDocSpecification()
Returns the
SPDocSpecification definig the syntax used
for producing the signature policy document. |
Node |
marshal(DOMCryptoContext context,
Node parent,
Node nextSibling) |
protected Attr |
marshalIDAttribute(DOMCryptoContext context,
Element parent) |
protected void |
putChildStructure(iaik.xml.crypto.dom.DOMStructure childStructure) |
protected void |
unmarshalAttributes(NamedNodeMap attributes,
DOMCryptoContext context) |
protected void |
unmarshalStructures(NodeList nodes,
DOMCryptoContext context) |
getInstance, getParentQualifyingPropertiesOf, getParentSignatureOf
addBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshalAttributes, marshalElement, newIDforLookUp, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalElement, unmarshalIDAttribute, wrapNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFeatureSupported
public SignaturePolicyStoreImpl(SPDocSpecification sPDocSpecification, String sigPolDocLocalURI, String id)
sPDocSpecification
- The SPDocSpecification definig the syntax used
for producing the signature policy document.
Must not be null
.sigPolDocLocalURI
- The uri pointing to the local stored signature
policy document. Must not be null
.id
- The value of the Id
attribute.
Maybe null
public SignaturePolicyStoreImpl(SPDocSpecification sPDocSpecification, byte[] signaturePolicyDocument, String id)
sPDocSpecification
- The SPDocSpecification definig the syntax used
for producing the signature policy document.
Must not be null
.signaturePolicyDocument
- The signature policy document to be added as
base64 encoded content of the <SignaturePolicyDocument>
element. Must not be null
.id
- The value of the Id
attribute.
Maybe null
public SignaturePolicyStoreImpl(SPDocSpecification sPDocSpecification, InputStream signaturePolicyDocument, String id)
sPDocSpecification
- The SPDocSpecification definig the syntax used
for producing the signature policy document.
Must not be null
.signaturePolicyDocument
- The signature policy document to be added as
base64 encoded content of the <SignaturePolicyDocument>
element. Must not be null
.id
- The value of the Id
attribute.
Maybe null
public SignaturePolicyStoreImpl(DOMCryptoContext context, Node node) throws MarshalException
SignaturePolicyStoreImpl
with the given
context and node.context
- the contextnode
- the node to unmarshal fromNullPointerException
- if config
, context
or node
is null
MarshalException
- if an exception occurs during unmarshalingprotected 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)
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 Attr marshalIDAttribute(DOMCryptoContext context, Element parent)
marshalIDAttribute
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.marshalIDAttribute(DOMCryptoContext,
Element)
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 SPDocSpecification getSpDocSpecification()
SignaturePolicyStore
SPDocSpecification
definig the syntax used
for producing the signature policy document.getSpDocSpecification
in interface SignaturePolicyStore
SPDocSpecification
.SignaturePolicyStore.getSpDocSpecification()
public String getSigPolDocLocalURI()
SignaturePolicyStore
getSigPolDocLocalURI
in interface SignaturePolicyStore
null
SignaturePolicyStore.getSigPolDocLocalURI()
public byte[] getSignaturePolicyDocument()
SignaturePolicyStore
getSignaturePolicyDocument
in interface SignaturePolicyStore
null
.SignaturePolicyStore.getSignaturePolicyDocument()
public String getId()
SignaturePolicyStore
Id
-attribute value.getId
in interface SignaturePolicyStore
Id
-attribute valueSignaturePolicyStore.getId()
public String getLocalName()
getLocalName
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.getLocalName()
public String getNamespace()
XadesDOMStructure
getNamespace
in class XadesDOMStructure
XadesDOMStructure.getNamespace()
© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC