xades4j.providers.impl
Class FileSystemKeyStoreKeyingDataProvider
java.lang.Object
xades4j.providers.impl.KeyStoreKeyingDataProvider
xades4j.providers.impl.FileSystemKeyStoreKeyingDataProvider
- All Implemented Interfaces:
- KeyingDataProvider
public class FileSystemKeyStoreKeyingDataProvider
- extends KeyStoreKeyingDataProvider
A specification of KeyStoreKeyingDataProvider for file-system keystores.
The protection parameter to access the entry is a PasswordProtection
with a password obtained directly from the KeyStorePasswordProvider.
- Author:
- Luís
- See Also:
KeyStoreKeyingDataProvider
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSystemKeyStoreKeyingDataProvider
public FileSystemKeyStoreKeyingDataProvider(String keyStoreType,
String keyStorePath,
KeyStoreKeyingDataProvider.SigningCertSelector certificateSelector,
KeyStoreKeyingDataProvider.KeyStorePasswordProvider keyStorePasswordProvider,
KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider,
boolean returnFullChain)
throws KeyStoreException
- Parameters:
keyStoreType - the type of the keystore (jks, pkcs12, etc)keyStorePath - the file-system path of the keystorecertificateSelector - the selector of signing certificatekeyStorePasswordProvider - the provider of the keystore loading passwordentryPasswordProvider - the provider of entry passwordsreturnFullChain - indicates of the full certificate chain should be returned, if available
- Throws:
KeyStoreException
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 class KeyStoreKeyingDataProvider
- 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 be null)
- Returns:
- the protection
Copyright © 2012. All Rights Reserved.