@Immutable public class AS4CryptoFactoryInMemoryKeyStore extends Object implements IAS4CryptoFactory
IAS4CryptoFactory in which
case the KeyStore is available in memory and the settings are NOT
read from a file. Created for https://github.com/phax/phase4/issues/28| Constructor and Description |
|---|
AS4CryptoFactoryInMemoryKeyStore(KeyStore aKeyStore,
String sKeyAlias,
String sKeyPassword,
KeyStore aTrustStore)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.wss4j.common.crypto.Crypto |
getCrypto()
Lazily create a
Crypto instance using the key store and trust store
from the constructor. |
String |
getKeyAlias() |
String |
getKeyPassword() |
KeyStore |
getKeyStore() |
KeyStore.PrivateKeyEntry |
getPrivateKeyEntry() |
KeyStore |
getTrustStore() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateWSSConfigpublic AS4CryptoFactoryInMemoryKeyStore(@Nonnull KeyStore aKeyStore, @Nonnull @Nonempty String sKeyAlias, @Nonnull String sKeyPassword, @Nullable KeyStore aTrustStore)
aKeyStore - The key store to be used. May not be null.sKeyAlias - The key alias to be used. May neither be null nor
empty.sKeyPassword - The key password to be used. May not be null but maybe
empty.aTrustStore - The optional trust store to be used. If none is provided the default
Java runtime truststore (cacerts) is used.@Nonnull public final org.apache.wss4j.common.crypto.Crypto getCrypto()
Crypto instance using the key store and trust store
from the constructor.getCrypto in interface IAS4CryptoFactoryCrypto instance and never null.@Nonnull public final KeyStore getKeyStore()
getKeyStore in interface IAS4CryptoFactorynull if none is available
(the reasons depend on the used implementation).@Nullable public final KeyStore.PrivateKeyEntry getPrivateKeyEntry()
getPrivateKeyEntry in interface IAS4CryptoFactorynull if none is available (the reasons depend on the
used implementation).@Nonnull public final String getKeyAlias()
getKeyAlias in interface IAS4CryptoFactorynull.@Nonnull public final String getKeyPassword()
getKeyPassword in interface IAS4CryptoFactorynull.Copyright © 2015–2020 Philip Helger. All rights reserved.