public class

FileSystemKeyStoreKeyingDataProvider

extends KeyStoreKeyingDataProvider
java.lang.Object
   ↳ xades4j.providers.impl.KeyStoreKeyingDataProvider
     ↳ xades4j.providers.impl.FileSystemKeyStoreKeyingDataProvider

Class Overview

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.

Summary

Public Constructors
FileSystemKeyStoreKeyingDataProvider(String keyStoreType, String keyStorePath, KeyStoreKeyingDataProvider.SigningCertSelector certificateSelector, KeyStoreKeyingDataProvider.KeyStorePasswordProvider keyStorePasswordProvider, KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider, boolean returnFullChain)
Protected Methods
KeyStore.ProtectionParameter getKeyProtection(String entryAlias, X509Certificate entryCert, KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider)
Gets a protection parameter to access the specified entry.
[Expand]
Inherited Methods
From class xades4j.providers.impl.KeyStoreKeyingDataProvider
From class java.lang.Object
From interface xades4j.providers.KeyingDataProvider

Public Constructors

public FileSystemKeyStoreKeyingDataProvider (String keyStoreType, String keyStorePath, KeyStoreKeyingDataProvider.SigningCertSelector certificateSelector, KeyStoreKeyingDataProvider.KeyStorePasswordProvider keyStorePasswordProvider, KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider, boolean returnFullChain)

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

Protected Methods

protected KeyStore.ProtectionParameter getKeyProtection (String entryAlias, X509Certificate entryCert, KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider)

Gets a protection parameter to access the specified entry.

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