@NotThreadSafe public class AS4CryptParams extends Object implements Serializable, com.helger.commons.lang.ICloneable<AS4CryptParams>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DIGEST_ALGORITHM |
static String |
DEFAULT_KEY_ENC_ALGORITHM |
static String |
DEFAULT_MGF_ALGORITHM |
| Constructor and Description |
|---|
AS4CryptParams() |
| Modifier and Type | Method and Description |
|---|---|
static AS4CryptParams |
createDefault() |
ECryptoAlgorithmCrypt |
getAlgorithmCrypt() |
String |
getAlias() |
X509Certificate |
getCertificate() |
AS4CryptParams |
getClone() |
String |
getDigestAlgorithm() |
String |
getKeyEncAlgorithm() |
String |
getMGFAlgorithm() |
boolean |
hasAlias() |
boolean |
hasCertificate() |
boolean |
isCryptEnabled(Consumer<String> aWarningConsumer) |
AS4CryptParams |
setAlgorithmCrypt(ECryptoAlgorithmCrypt eAlgorithmCrypt)
A encryption algorithm can be set.
|
AS4CryptParams |
setAlias(String sAlias) |
AS4CryptParams |
setCertificate(X509Certificate aCert) |
AS4CryptParams |
setDigestAlgorithm(String sDigestAlgorithm) |
AS4CryptParams |
setFromPMode(PModeLegSecurity aSecurity) |
AS4CryptParams |
setKeyEncAlgorithm(String sKeyEncAlgorithm) |
AS4CryptParams |
setMGFAlgorithm(String sMGFAlgorithm) |
String |
toString() |
public static final String DEFAULT_KEY_ENC_ALGORITHM
public static final String DEFAULT_MGF_ALGORITHM
public static final String DEFAULT_DIGEST_ALGORITHM
@Nullable public final ECryptoAlgorithmCrypt getAlgorithmCrypt()
null.@Nonnull public final AS4CryptParams setAlgorithmCrypt(@Nullable ECryptoAlgorithmCrypt eAlgorithmCrypt)
eAlgorithmCrypt - the encryption algorithm that should be set@Nonnull public final AS4CryptParams setKeyEncAlgorithm(@Nonnull @Nonempty String sKeyEncAlgorithm)
@Nonnull @Nonempty public final String getMGFAlgorithm()
DEFAULT_MGF_ALGORITHM@Nonnull public final AS4CryptParams setMGFAlgorithm(@Nonnull @Nonempty String sMGFAlgorithm)
@Nonnull @Nonempty public final String getDigestAlgorithm()
DEFAULT_DIGEST_ALGORITHM@Nonnull public final AS4CryptParams setDigestAlgorithm(@Nonnull @Nonempty String sDigestAlgorithm)
@Nullable public final X509Certificate getCertificate()
public final boolean hasCertificate()
@Nonnull public final AS4CryptParams setCertificate(@Nullable X509Certificate aCert)
public final boolean hasAlias()
@Nonnull public final AS4CryptParams setAlias(@Nullable String sAlias)
@Nonnull public final AS4CryptParams setFromPMode(@Nullable PModeLegSecurity aSecurity)
@Nonnull @ReturnsMutableCopy public AS4CryptParams getClone()
getClone in interface com.helger.commons.lang.ICloneable<AS4CryptParams>@Nonnull @ReturnsMutableObject public static AS4CryptParams createDefault()
Copyright © 2015–2020 Philip Helger. All rights reserved.