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 boolean
equals(Object obj)
String
getDescription()
Get the signature policy descriptionDigestAlgorithm
getDigestAlgorithm()
Return the hash algorithm for the signature policybyte[]
getDigestValue()
Get the hash value of the explicit signature policyString
getId()
Get the signature policy (EPES)String
getQualifier()
Get the identifier qualifierString
getSpuri()
Get the SP URI (signature policy URI)int
hashCode()
void
setDescription(String description)
Set the signature policy descriptionvoid
setDigestAlgorithm(DigestAlgorithm digestAlgorithm)
Set the hash algorithm for the explicit signature policyvoid
setDigestValue(byte[] digestValue)
Set the hash value of implicit signature policyvoid
setId(String id)
Set the signature policy (EPES)void
setQualifier(String qualifier)
Set the identifier qualifiervoid
setSpuri(String spuri)
Set the SP URI (signature policy URI)String
toString()
-
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
-
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
-