Package xades4j.providers.impl
Class PKCS11KeyStoreKeyingDataProvider.Builder
java.lang.Object
xades4j.providers.impl.PKCS11KeyStoreKeyingDataProvider.Builder
- Enclosing class:
- PKCS11KeyStoreKeyingDataProvider
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a newPKCS11KeyStoreKeyingDataProvider
based on the current configuration.entryPassword
(KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider) Sets the provider of entry passwordsfullChain
(boolean fullChain) Sets whether the full certificate chain should be returned, if available.providerName
(String providerName) Sets the underlying PKCS#11 provider name.slot
(int slotId) Sets the id of the slot that this provider instance is to be associated with.storePassword
(KeyStoreKeyingDataProvider.KeyStorePasswordProvider storePasswordProvider) Sets the provider of the keystore loading password.
-
Method Details
-
build
Create a newPKCS11KeyStoreKeyingDataProvider
based on the current configuration.- Returns:
- the provider
-
providerName
Sets the underlying PKCS#11 provider name. If the name is already in use, an exception is thrown.- Parameters:
providerName
- the provider name- Returns:
- the current instance
-
slot
Sets the id of the slot that this provider instance is to be associated with.- Parameters:
slotId
- the slot ID- Returns:
- the current instance
-
storePassword
public PKCS11KeyStoreKeyingDataProvider.Builder storePassword(KeyStoreKeyingDataProvider.KeyStorePasswordProvider storePasswordProvider) Sets the provider of the keystore loading password.- Parameters:
storePasswordProvider
- keystore password provider- Returns:
- the current instance
-
entryPassword
public PKCS11KeyStoreKeyingDataProvider.Builder entryPassword(KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider) Sets the provider of entry passwords- Parameters:
entryPasswordProvider
- entry password provider- Returns:
- the current instance
-
fullChain
Sets whether the full certificate chain should be returned, if available.- Parameters:
fullChain
-true
to return the full certificate chain, false otherwise- Returns:
- the current instance
-