xades4j.providers.impl
Class FileSystemKeyStoreKeyingDataProvider

java.lang.Object
  extended by xades4j.providers.impl.KeyStoreKeyingDataProvider
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class xades4j.providers.impl.KeyStoreKeyingDataProvider
KeyStoreKeyingDataProvider.KeyEntryPasswordProvider, KeyStoreKeyingDataProvider.KeyStoreBuilderCreator, KeyStoreKeyingDataProvider.KeyStorePasswordProvider, KeyStoreKeyingDataProvider.SigningCertSelector
 
Constructor Summary
FileSystemKeyStoreKeyingDataProvider(String keyStoreType, String keyStorePath, KeyStoreKeyingDataProvider.SigningCertSelector certificateSelector, KeyStoreKeyingDataProvider.KeyStorePasswordProvider keyStorePasswordProvider, KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider, boolean returnFullChain)
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 keystore
certificateSelector - the selector of signing certificate
keyStorePasswordProvider - the provider of the keystore loading password
entryPasswordProvider - the provider of entry passwords
returnFullChain - indicates of the full certificate chain should be returned, if available
Throws:
KeyStoreException
Method Detail

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 accessed
entryCert - the cerificate in the entry
entryPasswordProvider - the password provider that should be used to get the actual password (may be null)
Returns:
the protection


Copyright © 2012. All Rights Reserved.