@Immutable public class AS4CryptoProperties extends Object implements Serializable, com.helger.commons.lang.ICloneable<AS4CryptoProperties>
| Modifier and Type | Field and Description |
|---|---|
static String |
CRYPTO_PROVIDER
The class name implementing the CryptoProvider - default value is
"org.apache.wss4j.common.crypto.Merlin"
|
static String |
KEY_ALIAS
Keystore key alias
|
static String |
KEY_PASSWORD
Keystore key password
|
static String |
KEYSTORE_FILE
Keystore filename/path
|
static String |
KEYSTORE_PASSWORD
Keystore password
|
static String |
KEYSTORE_TYPE
Keystore type: JKS or PKCS12
|
static String |
LOAD_CACERTS
Type boolean
|
static String |
TRUSTSTORE_FILE
Truststore filename/path
|
static String |
TRUSTSTORE_PASSWORD
Truststore password
|
static String |
TRUSTSTORE_PROVIDER
Truststore provider - must usually not be set
|
static String |
TRUSTSTORE_TYPE
Truststore type - JKS or PKCS12?
|
| Constructor and Description |
|---|
AS4CryptoProperties()
Default constructor having only the crypto provider property set to
default.
|
AS4CryptoProperties(com.helger.commons.io.resource.IReadableResource aRes)
Constructor reading the properties from a resource using the Properties
file syntax
|
public static final String CRYPTO_PROVIDER
public static final String KEYSTORE_TYPE
public static final String KEYSTORE_FILE
public static final String KEYSTORE_PASSWORD
public static final String KEY_ALIAS
public static final String KEY_PASSWORD
public static final String LOAD_CACERTS
public static final String TRUSTSTORE_PROVIDER
public static final String TRUSTSTORE_TYPE
public static final String TRUSTSTORE_FILE
public static final String TRUSTSTORE_PASSWORD
public AS4CryptoProperties()
public AS4CryptoProperties(@Nonnull com.helger.commons.io.resource.IReadableResource aRes)
aRes - The resource to read. May not be null.public final boolean isRead()
true if properties are available. This is always
true when a map was used to initialize it. Only if a
resource was used, this may become false.@Nullable public Properties getAsProperties()
Properties.
May be null.@Nonnull public final AS4CryptoProperties setCryptoProvider(@Nullable String sCryptoProvider)
@Nonnull public final AS4CryptoProperties setCryptoProviderDefault()
@Nullable public com.helger.security.keystore.EKeyStoreType getKeyStoreType()
@Nonnull public final AS4CryptoProperties setKeyStoreType(@Nullable com.helger.security.keystore.EKeyStoreType eType)
@Nonnull public final AS4CryptoProperties setKeyStorePath(@Nullable String sKeyStorePath)
@Nonnull public final AS4CryptoProperties setKeyStorePassword(@Nullable String sKeyStorePassword)
@Nonnull public final AS4CryptoProperties setKeyAlias(@Nullable String sKeyAlias)
@Nonnull public final AS4CryptoProperties setKeyPassword(@Nullable String sKeyPassword)
@Nonnull public com.helger.commons.state.ETriState getLoadCACerts()
@Nonnull public final AS4CryptoProperties setLoadCACerts(boolean bLoadCACerts)
@Nonnull public final AS4CryptoProperties setTrustStoreProvider(@Nullable String sTrustStoreProvider)
@Nullable public com.helger.security.keystore.EKeyStoreType getTrustStoreType()
@Nonnull public final AS4CryptoProperties setTrustStoreType(@Nullable com.helger.security.keystore.EKeyStoreType eType)
@Nonnull public final AS4CryptoProperties setTrustStorePath(@Nullable String sTrustStorePath)
@Nonnull public final AS4CryptoProperties setTrustStorePassword(@Nullable String sTrustStorePassword)
@Nonnull @ReturnsMutableCopy public AS4CryptoProperties getClone()
getClone in interface com.helger.commons.lang.ICloneable<AS4CryptoProperties>Copyright © 2015–2020 Philip Helger. All rights reserved.