xades4j.properties
Class SignaturePolicyIdentifierProperty

java.lang.Object
  extended by xades4j.properties.SignatureProperty
      extended by xades4j.properties.SignedSignatureProperty
          extended by xades4j.properties.SignaturePolicyBase
              extended by xades4j.properties.SignaturePolicyIdentifierProperty
All Implemented Interfaces:
QualifyingProperty

public final class SignaturePolicyIdentifierProperty
extends SignaturePolicyBase

An explicit and unambiguous identifier of a signature policy.

Author:
Luís
See Also:
SignaturePolicyBase

Field Summary
 
Fields inherited from class xades4j.properties.SignaturePolicyBase
PROP_NAME
 
Fields inherited from interface xades4j.properties.QualifyingProperty
QUALIFYING_PROPS_REF_TAG, QUALIFYING_PROPS_TAG, SIGNED_DATAOBJ_PROPS_TAG, SIGNED_PROPS_TAG, SIGNED_PROPS_TYPE_URI, SIGNED_SIGNATURE_PROPS_TAG, TARGET_ATTR, UNSIGNED_DATAOBJ_PROPS_TAG, UNSIGNED_PROPS_TAG, UNSIGNED_SIGNATURE_PROPS_TAG, XADES_XMLNS, XADESV141_XMLNS
 
Constructor Summary
SignaturePolicyIdentifierProperty(ObjectIdentifier identifier, byte[] policyDocumentData)
           
SignaturePolicyIdentifierProperty(ObjectIdentifier identifier, InputStream policyDocumentStream)
           
 
Method Summary
 ObjectIdentifier getIdentifier()
           
 byte[] getPolicyDocumentData()
          Gets the content of the policy document
 InputStream getPolicyDocumentStream()
          Gets the stream to the policy document.
 
Methods inherited from class xades4j.properties.SignaturePolicyBase
getName
 
Methods inherited from class xades4j.properties.SignedSignatureProperty
isSigned
 
Methods inherited from class xades4j.properties.SignatureProperty
isSignature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignaturePolicyIdentifierProperty

public SignaturePolicyIdentifierProperty(ObjectIdentifier identifier,
                                         InputStream policyDocumentStream)
Parameters:
identifier - the policy identifier
policyDocumentStream - an InputStream to the policy document
Throws:
NullPointerException - if policyDocumentStream is null

SignaturePolicyIdentifierProperty

public SignaturePolicyIdentifierProperty(ObjectIdentifier identifier,
                                         byte[] policyDocumentData)
Parameters:
identifier - the policy identifier
policyDocumentData - the content of the policy document
Throws:
NullPointerException - if policyDocumentData is null
Method Detail

getPolicyDocumentData

public byte[] getPolicyDocumentData()
Gets the content of the policy document

Returns:
the content or null if the instance was created with a stream

getPolicyDocumentStream

public InputStream getPolicyDocumentStream()
Gets the stream to the policy document. If the instance was created with the policy document content, a ByteArrayInputStream is returned.

Returns:
the stream

getIdentifier

public ObjectIdentifier getIdentifier()


Copyright © 2012. All Rights Reserved.