Package com.helger.phase4.crypto
Interface IAS4CryptoFactory
- All Known Implementing Classes:
AS4CryptoFactoryInMemoryKeyStore,AS4CryptoFactoryProperties
public interface IAS4CryptoFactory
The basic phase4 crypto interface.
- See
AS4CryptoFactoryPropertiesfor an implementation of this interface using a properties based approach
- Since:
- 0.9.7
- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.wss4j.common.crypto.Cryptodefault StringgetKeyPasswordPerAlias(String sSearchKeyAlias) Returns the password for the key represented by the provided alias.default boolean
-
Field Details
-
DEFAULT_ALLOW_RSA15_KEY_TRANSPORT_ALGORITHM
static final boolean DEFAULT_ALLOW_RSA15_KEY_TRANSPORT_ALGORITHM- See Also:
-
-
Method Details
-
getCrypto
- Returns:
- A WSS4J
Cryptoinstance and nevernull.
-
getKeyStore
- Returns:
- The underlying key store, or
nullif none is available (the reasons depend on the used implementation).
-
getPrivateKeyEntry
- Returns:
- The underlying private key entry from the keystore or
nullif none is available (the reasons depend on the used implementation).
-
getKeyAlias
- Returns:
- The keystore alias to resolve the private key entry. May be
null.
-
getKeyPassword
- Returns:
- The password to access the private key entry denoted by the key
alias. May be
null.
-
getTrustStore
- Returns:
- The trust store to be used or
nullif none is configured. - Since:
- 0.12.0
-
getKeyPasswordPerAlias
Returns the password for the key represented by the provided alias.- Parameters:
sSearchKeyAlias- The alias of the key whose password is to be retrieved.- Returns:
- The password for the key represented by the provided by the alias
or
nullif the factory doesn't have a password for the key. - Since:
- 1.4.1
-
isAllowRSA15KeyTransportAlgorithm
default boolean isAllowRSA15KeyTransportAlgorithm()- Returns:
- Whether to allow the RSA v1.5 Key Transport Algorithm or not.
Default is
false. - Since:
- 1.4.2
-