PDF4Java Reference Documentation
com.o2sol.pdf4java.digitalsignatures Package / PDFDigitalSignature Class / setSignaturePolicyIdentifier Method
The DER encoded signature policy identifier.
Collapse All Expand All
In This Topic

setSignaturePolicyIdentifier Method
In This Topic
Sets the signature policy identifier.
When this property is set to a non-null value, the signature-policy-identifier signed attribute is added to the signature.
The library does not verify and validate the content of this property. If this property does not include proper DER encoded content, the generated signature will be invalid.
This property is not used by signatures.
Syntax

    public void setSignaturePolicyIdentifier(
       byte[] spi
    )

#### Parameters

spi
  The DER encoded signature policy identifier.

See Also

#### Reference

PDFDigitalSignature Class
PDFDigitalSignature Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.