Class 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:
  • Constructor Details

    • 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 Details

    • 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()
    • withLocationUrl

      public SignaturePolicyIdentifierProperty withLocationUrl(String url)
      Adds a URL where a copy of the signature policy may be obtained. This will be added as a qualifier.
      Parameters:
      url - the location URL
      Returns:
      the current instance
    • getLocationUrl

      public String getLocationUrl()