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 policyStringgetId()Get the signature policy (EPES)StringgetQualifier()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 policyvoidsetId(String id)Set the signature policy (EPES)voidsetQualifier(String qualifier)Set the identifier qualifiervoidsetSpuri(String spuri)Set the SP URI (signature policy URI)StringtoString()
-
-
-
Method Detail
-
getId
public String getId()
Get the signature policy (EPES)- Returns:
- the policy id
-
setId
public void setId(String id)
Set the signature policy (EPES)- Parameters:
id- the policy id
-
getQualifier
public String getQualifier()
Get the identifier qualifier- Returns:
- the qualifier
-
setQualifier
public void setQualifier(String qualifier)
Set the identifier qualifier- Parameters:
qualifier- the qualifier
-
getDescription
public String getDescription()
Get the signature policy description- Returns:
- the signature policy description
-
setDescription
public void setDescription(String description)
Set the signature policy description- Parameters:
description- the policy description
-
getDigestAlgorithm
public DigestAlgorithm getDigestAlgorithm()
Return the hash algorithm for the signature policy- Returns:
- the used digest algorithm for the policy
-
setDigestAlgorithm
public void setDigestAlgorithm(DigestAlgorithm digestAlgorithm)
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
public String getSpuri()
Get the SP URI (signature policy URI)- Returns:
- the signature policy URI
-
setSpuri
public void setSpuri(String spuri)
Set the SP URI (signature policy URI)- Parameters:
spuri- the signature policy URI
-
-