Package eu.europa.esig.dss.model
Class Policy
java.lang.Object
eu.europa.esig.dss.model.Policy
- All Implemented Interfaces:
Serializable
public class Policy extends Object implements Serializable
This class allows to define the signature policy.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description Policy() -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)StringgetDescription()Get the signature policy descriptionDigestAlgorithmgetDigestAlgorithm()Return the hash algorithm for the signature policybyte[]getDigestValue()Get the hash value of the explicit signature policyString[]getDocumentationReferences()Get the signature policy documentation referencesStringgetId()Get the signature policy (EPES)ObjectIdentifierQualifiergetQualifier()Get the identifier qualifierStringgetSpuri()Get the SP URI (signature policy URI)inthashCode()voidsetDescription(String description)Set the signature policy descriptionvoidsetDigestAlgorithm(DigestAlgorithm digestAlgorithm)Set the hash algorithm for the explicit signature policyvoidsetDigestValue(byte[] digestValue)Set the hash value of implicit signature policyvoidsetDocumentationReferences(String... documentationReferences)Set a list of signature documentation referencesvoidsetId(String id)Set the signature policy (EPES)voidsetQualifier(ObjectIdentifierQualifier qualifier)Set the identifier qualifiervoidsetSpuri(String spuri)Set the SP URI (signature policy URI)StringtoString()
-
Constructor Details
-
Policy
public Policy()
-
-
Method Details
-
getId
Get the signature policy (EPES)- Returns:
- the policy id
-
setId
Set the signature policy (EPES)- Parameters:
id- the policy id
-
getQualifier
Get the identifier qualifier- Returns:
- the qualifier
-
setQualifier
Set the identifier qualifier- Parameters:
qualifier- the qualifier
-
getDescription
Get the signature policy description- Returns:
- the signature policy description
-
setDescription
Set the signature policy description- Parameters:
description- the policy description
-
getDocumentationReferences
Get the signature policy documentation references- Returns:
- the signature policy documentation references
-
setDocumentationReferences
Set a list of signature documentation references- Parameters:
documentationReferences- an array ofStringdocumentation references
-
getDigestAlgorithm
Return the hash algorithm for the signature policy- Returns:
- the used digest algorithm for the policy
-
setDigestAlgorithm
Set the hash algorithm for the explicit signature policy- Parameters:
digestAlgorithm- the used digest algorithm for the policy
-
getDigestValue
public byte[] getDigestValue()Get the hash value of the explicit signature policy- Returns:
- the digest value for the policy
-
setDigestValue
public void setDigestValue(byte[] digestValue)Set the hash value of implicit signature policy- Parameters:
digestValue- the digest of the policy
-
getSpuri
Get the SP URI (signature policy URI)- Returns:
- the signature policy URI
-
setSpuri
Set the SP URI (signature policy URI)- Parameters:
spuri- the signature policy URI
-
hashCode
public int hashCode() -
equals
-
toString
-