Package com.helger.phase4.crypto
Class AS4CryptoProperties
java.lang.Object
com.helger.phase4.crypto.AS4CryptoProperties
- All Implemented Interfaces:
com.helger.commons.lang.ICloneable<AS4CryptoProperties>,Serializable
@Immutable
@Deprecated(forRemoval=true,
since="3.0.0")
public class AS4CryptoProperties
extends Object
implements Serializable, com.helger.commons.lang.ICloneable<AS4CryptoProperties>
Deprecated, for removal: This API element is subject to removal in a future version.
Wrapper around the crypto properties file.
Deprecated since v3. Please use
Deprecated since v3. Please use
AS4KeyStoreDescriptor and
AS4TrustStoreDescriptor in combination with
AS4CryptoFactoryInMemoryKeyStore instead.- Author:
- bayerlma, Philip Helger
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.The class name implementing the CryptoProvider - default value is "org.apache.wss4j.common.crypto.Merlin"static final com.helger.security.keystore.EKeyStoreTypeDeprecated, for removal: This API element is subject to removal in a future version.static final com.helger.security.keystore.EKeyStoreTypeDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.Keystore key aliasstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Keystore key passwordstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Keystore filename/pathstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Keystore passwordstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Keystore type: JKS or PKCS12static final StringDeprecated, for removal: This API element is subject to removal in a future version.Type booleanstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Truststore filename/pathstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Truststore passwordstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Truststore provider - must usually not be setstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Truststore type - JKS or PKCS12? -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Default constructor having only the crypto provider property set to default.AS4CryptoProperties(com.helger.commons.io.resource.IReadableResource aRes) Deprecated, for removal: This API element is subject to removal in a future version.Constructor reading the properties from a resource using the Properties file syntax -
Method Summary
Modifier and TypeMethodDescriptionstatic AS4CryptoPropertiesDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getClone()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.char[]Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.com.helger.security.keystore.EKeyStoreTypeDeprecated, for removal: This API element is subject to removal in a future version.com.helger.commons.state.ETriStateDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.com.helger.security.keystore.EKeyStoreTypeDeprecated, for removal: This API element is subject to removal in a future version.final booleanisRead()Deprecated, for removal: This API element is subject to removal in a future version.final AS4CryptoPropertiessetCryptoProvider(String sCryptoProvider) Deprecated, for removal: This API element is subject to removal in a future version.final AS4CryptoPropertiesDeprecated, for removal: This API element is subject to removal in a future version.final AS4CryptoPropertiessetKeyAlias(String sKeyAlias) Deprecated, for removal: This API element is subject to removal in a future version.final AS4CryptoPropertiessetKeyPassword(String sKeyPassword) Deprecated, for removal: This API element is subject to removal in a future version.final AS4CryptoPropertiessetKeyStorePassword(String sKeyStorePassword) Deprecated, for removal: This API element is subject to removal in a future version.final AS4CryptoPropertiessetKeyStorePath(String sKeyStorePath) Deprecated, for removal: This API element is subject to removal in a future version.final AS4CryptoPropertiessetKeyStoreType(com.helger.security.keystore.EKeyStoreType eType) Deprecated, for removal: This API element is subject to removal in a future version.final AS4CryptoPropertiessetLoadCACerts(boolean bLoadCACerts) Deprecated, for removal: This API element is subject to removal in a future version.final AS4CryptoPropertiessetTrustStorePassword(String sTrustStorePassword) Deprecated, for removal: This API element is subject to removal in a future version.final AS4CryptoPropertiessetTrustStorePath(String sTrustStorePath) Deprecated, for removal: This API element is subject to removal in a future version.final AS4CryptoPropertiessetTrustStoreProvider(String sTrustStoreProvider) Deprecated, for removal: This API element is subject to removal in a future version.final AS4CryptoPropertiessetTrustStoreType(com.helger.security.keystore.EKeyStoreType eType) Deprecated, for removal: This API element is subject to removal in a future version.toString()Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
CRYPTO_PROVIDER
Deprecated, for removal: This API element is subject to removal in a future version.The class name implementing the CryptoProvider - default value is "org.apache.wss4j.common.crypto.Merlin"- See Also:
-
KEYSTORE_TYPE
Deprecated, for removal: This API element is subject to removal in a future version.Keystore type: JKS or PKCS12- See Also:
-
KEYSTORE_FILE
Deprecated, for removal: This API element is subject to removal in a future version.Keystore filename/path- See Also:
-
KEYSTORE_PASSWORD
Deprecated, for removal: This API element is subject to removal in a future version.Keystore password- See Also:
-
KEY_ALIAS
Deprecated, for removal: This API element is subject to removal in a future version.Keystore key alias- See Also:
-
KEY_PASSWORD
Deprecated, for removal: This API element is subject to removal in a future version.Keystore key password- See Also:
-
LOAD_CACERTS
Deprecated, for removal: This API element is subject to removal in a future version.Type boolean- See Also:
-
TRUSTSTORE_PROVIDER
Deprecated, for removal: This API element is subject to removal in a future version.Truststore provider - must usually not be set- See Also:
-
TRUSTSTORE_TYPE
Deprecated, for removal: This API element is subject to removal in a future version.Truststore type - JKS or PKCS12?- See Also:
-
TRUSTSTORE_FILE
Deprecated, for removal: This API element is subject to removal in a future version.Truststore filename/path- See Also:
-
TRUSTSTORE_PASSWORD
Deprecated, for removal: This API element is subject to removal in a future version.Truststore password- See Also:
-
DEFAULT_KEYSTORE_TYPE
public static final com.helger.security.keystore.EKeyStoreType DEFAULT_KEYSTORE_TYPEDeprecated, for removal: This API element is subject to removal in a future version. -
DEFAULT_TRUSTSTORE_TYPE
public static final com.helger.security.keystore.EKeyStoreType DEFAULT_TRUSTSTORE_TYPEDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
AS4CryptoProperties
public AS4CryptoProperties()Deprecated, for removal: This API element is subject to removal in a future version.Default constructor having only the crypto provider property set to default. -
AS4CryptoProperties
Deprecated, for removal: This API element is subject to removal in a future version.Constructor reading the properties from a resource using the Properties file syntax- Parameters:
aRes- The resource to read. May not benull.
-
-
Method Details
-
isRead
public final boolean isRead()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
trueif properties are available. This is alwaystruewhen a map was used to initialize it. Only if a resource was used, this may becomefalse.
-
getAsProperties
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- A representation of the contained properties as
Properties. May benull.
-
getCryptoProvider
Deprecated, for removal: This API element is subject to removal in a future version. -
setCryptoProvider
Deprecated, for removal: This API element is subject to removal in a future version. -
setCryptoProviderDefault
Deprecated, for removal: This API element is subject to removal in a future version. -
getKeyStoreType
Deprecated, for removal: This API element is subject to removal in a future version. -
setKeyStoreType
@Nonnull public final AS4CryptoProperties setKeyStoreType(@Nullable com.helger.security.keystore.EKeyStoreType eType) Deprecated, for removal: This API element is subject to removal in a future version. -
getKeyStorePath
Deprecated, for removal: This API element is subject to removal in a future version. -
setKeyStorePath
Deprecated, for removal: This API element is subject to removal in a future version. -
getKeyStorePassword
Deprecated, for removal: This API element is subject to removal in a future version. -
setKeyStorePassword
Deprecated, for removal: This API element is subject to removal in a future version. -
getKeyAlias
Deprecated, for removal: This API element is subject to removal in a future version. -
setKeyAlias
Deprecated, for removal: This API element is subject to removal in a future version. -
getKeyPassword
Deprecated, for removal: This API element is subject to removal in a future version. -
getKeyPasswordCharArray
Deprecated, for removal: This API element is subject to removal in a future version. -
setKeyPassword
Deprecated, for removal: This API element is subject to removal in a future version. -
getLoadCACerts
Deprecated, for removal: This API element is subject to removal in a future version. -
setLoadCACerts
Deprecated, for removal: This API element is subject to removal in a future version. -
getTrustStoreProvider
Deprecated, for removal: This API element is subject to removal in a future version. -
setTrustStoreProvider
@Nonnull public final AS4CryptoProperties setTrustStoreProvider(@Nullable String sTrustStoreProvider) Deprecated, for removal: This API element is subject to removal in a future version. -
getTrustStoreType
Deprecated, for removal: This API element is subject to removal in a future version. -
setTrustStoreType
@Nonnull public final AS4CryptoProperties setTrustStoreType(@Nullable com.helger.security.keystore.EKeyStoreType eType) Deprecated, for removal: This API element is subject to removal in a future version. -
getTrustStorePath
Deprecated, for removal: This API element is subject to removal in a future version. -
setTrustStorePath
Deprecated, for removal: This API element is subject to removal in a future version. -
getTrustStorePassword
Deprecated, for removal: This API element is subject to removal in a future version. -
setTrustStorePassword
@Nonnull public final AS4CryptoProperties setTrustStorePassword(@Nullable String sTrustStorePassword) Deprecated, for removal: This API element is subject to removal in a future version. -
getClone
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<AS4CryptoProperties>
-
toString
Deprecated, for removal: This API element is subject to removal in a future version. -
createFromConfig
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- A new
AS4CryptoPropertiesobject filled with all values from the global configuration file. Values not present in the configuration are not set and stay with their default values. - Since:
- 0.11.0
-
AS4CryptoFactoryConfigurationinstead. This class will be removed in the next major release.