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
ConstructorsConstructorDescriptionDefault constructor instantiating object with default values -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet claimed rolesGet the commitment type indicationsGet the signature policyGet the signed assertionsGet the signer locationGet the signing dateinthashCode()booleanCheck if the trust anchor policy shall be used when creating -B and -LT levelsvoidsetClaimedSignerRoles(List<String> claimedSignerRoles) Set a list of claimed signer rolesvoidsetCommitmentTypeIndications(List<CommitmentType> commitmentTypeIndications) Set the commitment type indications (predefined values are available inCommitmentType)voidsetSignaturePolicy(Policy signaturePolicy) This setter allows to indicate the signature policy to use.voidsetSignedAssertions(List<String> signedAssertions) Set signed assertionsvoidsetSignerLocation(SignerLocation signerLocation) Set the signer locationvoidsetSigningDate(Date signingDate) Set the signing datevoidsetTrustAnchorBPPolicy(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
Get the signing date- Returns:
- the signing date
-
setSigningDate
Set the signing date- Parameters:
signingDate- the signing date
-
setClaimedSignerRoles
Set a list of claimed signer roles- Parameters:
claimedSignerRoles- a list of claimed signer roles
-
getClaimedSignerRoles
Get claimed roles- Returns:
- the list of claimed roles
-
getSignedAssertions
Get the signed assertions- Returns:
- list of
Strings
-
setSignedAssertions
Set signed assertions- Parameters:
signedAssertions- a list ofStrings
-
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
Get the signer location- Returns:
- the location
-
setSignerLocation
Set the signer location- Parameters:
signerLocation- the location to set
-
hashCode
public int hashCode() -
equals
-
toString
-