Class TrustServiceProviderBuilder
java.lang.Object
eu.europa.esig.dss.spi.tsl.builder.TrustServiceProviderBuilder
Builds
TrustServiceProvider
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy the original object -
Method Summary
Modifier and TypeMethodDescriptionbuild()
BuildsTrustServiceProvider
Gets a map of electronic addressesGets a map of informationgetNames()
Gets a map of names (first key is the language)Gets a map of postal addressesGets registration identifiersGets a list of trust servicesGets territory (country)Gets a map of trade namessetElectronicAddresses
(Map<String, List<String>> electronicAddresses) Sets a map of electronic addressessetInformation
(Map<String, String> information) Sets a map of informationSets a map of namessetPostalAddresses
(Map<String, String> postalAddresses) Sets a map of postal addressessetRegistrationIdentifiers
(List<String> registrationIdentifiers) Sets registration identifierssetServices
(List<TrustService> services) Sets a list of trust servicessetTerritory
(String territory) Sets territory (country)setTradeNames
(Map<String, List<String>> tradeNames) Sets a map of trade names
-
Constructor Details
-
TrustServiceProviderBuilder
public TrustServiceProviderBuilder()Default constructor -
TrustServiceProviderBuilder
Copy the original object- Parameters:
original
- the original trust service provider
-
-
Method Details
-
build
BuildsTrustServiceProvider
- Returns:
TrustServiceProvider
-
getNames
Gets a map of names (first key is the language)- Returns:
- a map of names
-
setNames
Sets a map of names- Parameters:
names
- a map of names (first key is the language)- Returns:
- this
TrustServiceProviderBuilder
-
getTradeNames
Gets a map of trade names- Returns:
- a map of trade names
-
setTradeNames
Sets a map of trade names- Parameters:
tradeNames
- a map of trade names (first key is the language)- Returns:
- this
TrustServiceProviderBuilder
-
getRegistrationIdentifiers
Gets registration identifiers- Returns:
- a list of
String
s
-
setRegistrationIdentifiers
Sets registration identifiers- Parameters:
registrationIdentifiers
- a list ofString
s- Returns:
- this
TrustServiceProviderBuilder
-
getPostalAddresses
Gets a map of postal addresses- Returns:
- a map of postal addresses
-
setPostalAddresses
Sets a map of postal addresses- Parameters:
postalAddresses
- a map of postal addresses- Returns:
- this
TrustServiceProviderBuilder
-
getElectronicAddresses
Gets a map of electronic addresses- Returns:
- a map of electronic addresses
-
setElectronicAddresses
public TrustServiceProviderBuilder setElectronicAddresses(Map<String, List<String>> electronicAddresses) Sets a map of electronic addresses- Parameters:
electronicAddresses
- a map of electronic addresses- Returns:
- this
TrustServiceProviderBuilder
-
getInformation
Gets a map of information- Returns:
- a map of information
-
setInformation
Sets a map of information- Parameters:
information
- a map of information- Returns:
- this
TrustServiceProviderBuilder
-
getServices
Gets a list of trust services- Returns:
- a list of
TrustService
s
-
setServices
Sets a list of trust services- Parameters:
services
- a list ofTrustService
s- Returns:
- this
TrustServiceProviderBuilder
-
getTerritory
Gets territory (country)- Returns:
String
-
setTerritory
Sets territory (country)- Parameters:
territory
-String
- Returns:
- this
TrustServiceProviderBuilder
-