xades4j.properties
Class SignaturePolicyIdentifierProperty
java.lang.Object
xades4j.properties.SignatureProperty
xades4j.properties.SignedSignatureProperty
xades4j.properties.SignaturePolicyBase
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
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SignaturePolicyIdentifierProperty
public SignaturePolicyIdentifierProperty(ObjectIdentifier identifier,
InputStream policyDocumentStream)
- Parameters:
identifier - the policy identifierpolicyDocumentStream - an InputStream to the policy document
- Throws:
NullPointerException - if policyDocumentStream is null
SignaturePolicyIdentifierProperty
public SignaturePolicyIdentifierProperty(ObjectIdentifier identifier,
byte[] policyDocumentData)
- Parameters:
identifier - the policy identifierpolicyDocumentData - the content of the policy document
- Throws:
NullPointerException - if policyDocumentData is null
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.