|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxades4j.providers.impl.KeyStoreKeyingDataProvider
public abstract class KeyStoreKeyingDataProvider
A KeyStore-based implementation of KeyingDataProvider. The keystore is
loaded on first access.
The following procedure is done to get the signing certificate:
SigningCertSelector to choose the certificate and thus the entryThe following procedure is done to get the signing key:
FileSystemKeyStoreKeyingDataProvider,
PKCS11KeyStoreKeyingDataProvider| Nested Class Summary | |
|---|---|
static interface |
KeyStoreKeyingDataProvider.KeyEntryPasswordProvider
Provides a password to access a keystore entry. |
protected static interface |
KeyStoreKeyingDataProvider.KeyStoreBuilderCreator
Gets a builder that will create the keystore instance. |
static interface |
KeyStoreKeyingDataProvider.KeyStorePasswordProvider
Provides a password to load the keystore. |
static interface |
KeyStoreKeyingDataProvider.SigningCertSelector
Used to select a certificate from the available certificates. |
| Constructor Summary | |
|---|---|
protected |
KeyStoreKeyingDataProvider(KeyStoreKeyingDataProvider.KeyStoreBuilderCreator builderCreator,
KeyStoreKeyingDataProvider.SigningCertSelector certificateSelector,
KeyStoreKeyingDataProvider.KeyStorePasswordProvider storePasswordProvider,
KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider,
boolean returnFullChain)
|
| Method Summary | |
|---|---|
protected abstract KeyStore.ProtectionParameter |
getKeyProtection(String entryAlias,
X509Certificate entryCert,
KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider)
Gets a protection parameter to access the specified entry. |
List<X509Certificate> |
getSigningCertificateChain()
Gets the signing certificate chain to be used in an ongoing signature operation. |
PrivateKey |
getSigningKey(X509Certificate signingCert)
Gets the signing key that matches a signing certificate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected KeyStoreKeyingDataProvider(KeyStoreKeyingDataProvider.KeyStoreBuilderCreator builderCreator,
KeyStoreKeyingDataProvider.SigningCertSelector certificateSelector,
KeyStoreKeyingDataProvider.KeyStorePasswordProvider storePasswordProvider,
KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider,
boolean returnFullChain)
throws KeyStoreException
builderCreator - certificateSelector - storePasswordProvider - entryPasswordProvider - returnFullChain - return the full certificate chain, if available
KeyStoreException| Method Detail |
|---|
public List<X509Certificate> getSigningCertificateChain()
throws SigningCertChainException,
UnexpectedJCAException
KeyingDataProvider
getSigningCertificateChain in interface KeyingDataProviderSigningCertChainException - if the signing certificate (chain) couldn't be obtained
UnexpectedJCAException - when an unexpected platform error occurs
public PrivateKey getSigningKey(X509Certificate signingCert)
throws SigningKeyException,
UnexpectedJCAException
KeyingDataProvidergetSigningCertificateChain.
getSigningKey in interface KeyingDataProvidersigningCert - the certificate for which the corresponding key should be returned
signingCert
SigningKeyException - if the signing key couldn't be obtained
UnexpectedJCAException - when an unexpected platform error occurs
protected abstract KeyStore.ProtectionParameter getKeyProtection(String entryAlias,
X509Certificate entryCert,
KeyStoreKeyingDataProvider.KeyEntryPasswordProvider entryPasswordProvider)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||