Package eu.europa.esig.dss.model
Class BLevelParameters
java.lang.Object
eu.europa.esig.dss.model.BLevelParameters
- All Implemented Interfaces:
Serializable
This class is used to define common b-level parameters for a signature creation
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with default values -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get claimed rolesGet the commitment type indicationsGet the signature policyGet the signed assertionsGet the signer locationGet the signing dateint
hashCode()
boolean
Check if the trust anchor policy shall be used when creating -B and -LT levelsvoid
setClaimedSignerRoles
(List<String> claimedSignerRoles) Set a list of claimed signer rolesvoid
setCommitmentTypeIndications
(List<CommitmentType> commitmentTypeIndications) Set the commitment type indications (predefined values are available inCommitmentType
)void
setSignaturePolicy
(Policy signaturePolicy) This setter allows to indicate the signature policy to use.void
setSignedAssertions
(List<String> signedAssertions) Set signed assertionsvoid
setSignerLocation
(SignerLocation signerLocation) Set the signer locationvoid
setSigningDate
(Date signingDate) Set the signing datevoid
setTrustAnchorBPPolicy
(boolean trustAnchorBPPolicy) Allows to set the trust anchor policy to use when creating -B and -LT levels.toString()
-
Constructor Details
-
BLevelParameters
public BLevelParameters()Default constructor instantiating object with default values
-
-
Method Details
-
isTrustAnchorBPPolicy
public boolean isTrustAnchorBPPolicy()Check if the trust anchor policy shall be used when creating -B and -LT levels- Returns:
- TRUE if the trust anchor policy shall be used when creating -B and -LT levels, FALSE otherwise
-
setTrustAnchorBPPolicy
public void setTrustAnchorBPPolicy(boolean trustAnchorBPPolicy) Allows to set the trust anchor policy to use when creating -B and -LT levels. NOTE: when trust anchor baseline profile policy is defined only the certificates previous to the trust anchor are included when building -B level.- Parameters:
trustAnchorBPPolicy
-boolean
-
getSignaturePolicy
Get the signature policy- Returns:
- the signature policy to use during the signature creation process
-
setSignaturePolicy
This setter allows to indicate the signature policy to use.- Parameters:
signaturePolicy
- signature policy to use
-
getSigningDate
-
setSigningDate
Set the signing date- Parameters:
signingDate
- the signing date
-
getClaimedSignerRoles
-
setClaimedSignerRoles
-
getSignedAssertions
-
setSignedAssertions
-
getCommitmentTypeIndications
Get the commitment type indications- Returns:
- the list of commitment type indications
-
setCommitmentTypeIndications
Set the commitment type indications (predefined values are available inCommitmentType
)- Parameters:
commitmentTypeIndications
- a list of commitment type indications
-
getSignerLocation
-
setSignerLocation
Set the signer location- Parameters:
signerLocation
- the location to set
-
hashCode
-
equals
-
toString
-