Package xades4j.providers.impl
Class FileSystemKeyStoreKeyingDataProvider
java.lang.Object
xades4j.providers.impl.KeyStoreKeyingDataProvider
xades4j.providers.impl.FileSystemKeyStoreKeyingDataProvider
- All Implemented Interfaces:
KeyingDataProvider
A specification of
KeyStoreKeyingDataProvider
for file-system keystores.
The protection parameter to access the entry is a KeyStore.PasswordProtection
with a password obtained directly from the KeyStoreKeyingDataProvider.KeyStorePasswordProvider
.
The builder(String, String, SigningCertificateSelector)
builder} method
can be used to configure and create a new instance.
- Author:
- Luís
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class xades4j.providers.impl.KeyStoreKeyingDataProvider
KeyStoreKeyingDataProvider.KeyEntryPasswordProvider, KeyStoreKeyingDataProvider.KeyStoreBuilderCreator, KeyStoreKeyingDataProvider.KeyStorePasswordProvider, KeyStoreKeyingDataProvider.SigningCertificateSelector
-
Method Summary
Modifier and TypeMethodDescriptionbuilder
(String keyStoreType, String keyStorePath, KeyStoreKeyingDataProvider.SigningCertificateSelector certificateSelector) Create a builder to configure a newFileSystemKeyStoreKeyingDataProvider
.protected KeyStore.ProtectionParameter
getKeyProtection
(String entryAlias, X509Certificate entryCert, KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider) Gets a protection parameter to access the specified entry.Methods inherited from class xades4j.providers.impl.KeyStoreKeyingDataProvider
getSigningCertificateChain, getSigningKey
-
Method Details
-
builder
public static FileSystemKeyStoreKeyingDataProvider.Builder builder(String keyStoreType, String keyStorePath, KeyStoreKeyingDataProvider.SigningCertificateSelector certificateSelector) Create a builder to configure a newFileSystemKeyStoreKeyingDataProvider
.- Parameters:
keyStoreType
- the type of the keystore (jks, pkcs12, etc)keyStorePath
- the file-system path of the keystorecertificateSelector
- the selector of signing certificate- Returns:
- the builder
-
getKeyProtection
protected KeyStore.ProtectionParameter getKeyProtection(String entryAlias, X509Certificate entryCert, KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider) Description copied from class:KeyStoreKeyingDataProvider
Gets a protection parameter to access the specified entry.- Specified by:
getKeyProtection
in classKeyStoreKeyingDataProvider
- Parameters:
entryAlias
- the alias of the entry that is being accessedentryCert
- the cerificate in the entryentryPasswordProvider
- the password provider that should be used to get the actual password (may benull
)- Returns:
- the protection
-