Interface SignaturePolicyIdentifier
- All Known Implementing Classes:
SignaturePolicyIdentifierImpl
public interface SignaturePolicyIdentifier
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setDescription
(String description) void
setIdentifier
(String identifier) void
setIdentifier
(String identifier, String hashBase64, String hashAlgorithm) Sets the SigPolicyId element values.void
setImplied
(boolean implied) void
setQualifier
(String qualifier) Sets the policy qualifier, wich must be an URL pointing to the human-readable document (usually a PDF) describing the policy.
-
Method Details
-
isImplied
boolean isImplied() -
setImplied
void setImplied(boolean implied) -
getIdentifier
String getIdentifier() -
setIdentifier
void setIdentifier(String identifier, String hashBase64, String hashAlgorithm) throws IOException, NoSuchAlgorithmException Sets the SigPolicyId element values.- Parameters:
identifier
- Policy identifier, usually an URL pointing the computer processable XML policy definition filehashBase64
- Hash of the policy (Base64 encoded) pointed by theidentifier parameter. May be null, but only if the
identifier is an URL universally accessible
hashAlgorithm
- Algorithm used for the calculation of the hash on thehashBase64
parameter. Ignored whenhashBase64
is null, but mandatory when it's not- Throws:
IOException
NoSuchAlgorithmException
-
setIdentifier
- Throws:
IOException
NoSuchAlgorithmException
-
getHashBase64
String getHashBase64() -
getHashAlgorithm
String getHashAlgorithm() -
getDescription
String getDescription() -
setDescription
-
getQualifier
String getQualifier() -
setQualifier
Sets the policy qualifier, wich must be an URL pointing to the human-readable document (usually a PDF) describing the policy.- Parameters:
qualifier
- URL to the policy human-readable description document
-