Interface SignaturePolicyIdentifier
- All Known Implementing Classes:
SignaturePolicyIdentifierImpl
public interface SignaturePolicyIdentifier
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetDescription(String description) voidsetIdentifier(String identifier) voidsetIdentifier(String identifier, String hashBase64, String hashAlgorithm) Sets the SigPolicyId element values.voidsetImplied(boolean implied) voidsetQualifier(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 theidentifier is an URL universally accessiblehashAlgorithm- Algorithm used for the calculation of the hash on thehashBase64parameter. Ignored whenhashBase64is null, but mandatory when it's not- Throws:
IOExceptionNoSuchAlgorithmException
-
setIdentifier
- Throws:
IOExceptionNoSuchAlgorithmException
-
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
-