Package eu.europa.esig.dss.spi.tsl
Class ServiceEquivalence.ServiceEquivalenceBuilder
java.lang.Object
eu.europa.esig.dss.spi.tsl.ServiceEquivalence.ServiceEquivalenceBuilder
- Enclosing class:
ServiceEquivalence
Builder class used to build a
ServiceEquivalence
object-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theServiceEquivalence
objectsetCertificateContentEquivalences
(List<CertificateContentEquivalence> certificateContentEquivalences) Sets a list of CertificateContentReferencesEquivalenceList equivalencessetEndDate
(Date endDate) Sets the endDate (equivalent to the starting date of the following service equivalence) valuesetLegalInfoIdentifier
(String legalInfoIdentifier) Sets TrustServiceLegalIdentifier valuesetQualifierEquivalence
(Map<String, String> qualifierEquivalence) Sets a map of QualifierEquivalenceList equivalences between pointed and pointing partiessetStartDate
(Date startDate) Sets TrustServiceEquivalenceStatusStartingTime valueSets TrustServiceEquivalenceStatus valueSets a map of TrustServiceTSLStatusEquivalenceList equivalences between pointed and pointing partiessetTypeAsiEquivalence
(Map<ServiceTypeASi, ServiceTypeASi> typeAsiEquivalence) Sets a map of AdditionalServiceInformation equivalences between pointed and pointing parties
-
Constructor Details
-
ServiceEquivalenceBuilder
public ServiceEquivalenceBuilder()Default constructor instantiating object with null values
-
-
Method Details
-
build
Builds theServiceEquivalence
object- Returns:
ServiceEquivalence
-
setLegalInfoIdentifier
public ServiceEquivalence.ServiceEquivalenceBuilder setLegalInfoIdentifier(String legalInfoIdentifier) Sets TrustServiceLegalIdentifier value- Parameters:
legalInfoIdentifier
-String
- Returns:
- this
ServiceEquivalence.ServiceEquivalenceBuilder
-
setStatus
Sets TrustServiceEquivalenceStatus value- Parameters:
status
-MRAStatus
- Returns:
- this
ServiceEquivalence.ServiceEquivalenceBuilder
-
setStartDate
Sets TrustServiceEquivalenceStatusStartingTime value- Parameters:
startDate
-Date
- Returns:
- this
ServiceEquivalence.ServiceEquivalenceBuilder
-
setEndDate
Sets the endDate (equivalent to the starting date of the following service equivalence) value- Parameters:
endDate
-Date
- Returns:
- this
ServiceEquivalence.ServiceEquivalenceBuilder
-
setTypeAsiEquivalence
public ServiceEquivalence.ServiceEquivalenceBuilder setTypeAsiEquivalence(Map<ServiceTypeASi, ServiceTypeASi> typeAsiEquivalence) Sets a map of AdditionalServiceInformation equivalences between pointed and pointing parties- Parameters:
typeAsiEquivalence
- a map betweenServiceTypeASi
for pointed andServiceTypeASi
for pointing parties- Returns:
- this
ServiceEquivalence.ServiceEquivalenceBuilder
-
setStatusEquivalence
public ServiceEquivalence.ServiceEquivalenceBuilder setStatusEquivalence(Map<List<String>, List<String>> statusEquivalence) Sets a map of TrustServiceTSLStatusEquivalenceList equivalences between pointed and pointing parties- Parameters:
statusEquivalence
- a map between list ofString
for pointed and pointing parties- Returns:
- this
ServiceEquivalence.ServiceEquivalenceBuilder
-
setCertificateContentEquivalences
public ServiceEquivalence.ServiceEquivalenceBuilder setCertificateContentEquivalences(List<CertificateContentEquivalence> certificateContentEquivalences) Sets a list of CertificateContentReferencesEquivalenceList equivalences- Parameters:
certificateContentEquivalences
- a list ofCertificateContentEquivalence
values- Returns:
- this
ServiceEquivalence.ServiceEquivalenceBuilder
-
setQualifierEquivalence
public ServiceEquivalence.ServiceEquivalenceBuilder setQualifierEquivalence(Map<String, String> qualifierEquivalence) Sets a map of QualifierEquivalenceList equivalences between pointed and pointing parties- Parameters:
qualifierEquivalence
- a map betweenString
for pointed and pointing parties- Returns:
- this
ServiceEquivalence.ServiceEquivalenceBuilder
-