Package com.helger.phase4.crypto
Enum Class ECryptoKeyAgreementMethod
- All Implemented Interfaces:
com.helger.base.id.IHasID<String>,Serializable,Comparable<ECryptoKeyAgreementMethod>,Constable
public enum ECryptoKeyAgreementMethod
extends Enum<ECryptoKeyAgreementMethod>
implements com.helger.base.id.IHasID<String>
Enumeration of key agreement methods for XML Encryption. Key agreement is an alternative to key
transport (e.g. RSA-OAEP) where both parties contribute to deriving a shared secret.
- Since:
- 4.4.0
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ECryptoKeyAgreementMethodgetFromIDOrDefault(@Nullable String sID, @Nullable ECryptoKeyAgreementMethod eDefault) static @Nullable ECryptoKeyAgreementMethodgetFromIDOrNull(@Nullable String sID) @NonNull @Nonempty StringgetID()static ECryptoKeyAgreementMethodReturns the enum constant of this class with the specified name.static ECryptoKeyAgreementMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ECDH_ES
ECDH-ES key agreement (generic, for EC keys on standard curves like secp256r1) -
X25519
X25519 key agreement (Curve25519, eDelivery AS4 2.0 Common Usage Profile) -
X448
X448 key agreement (Curve448)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getID
- Specified by:
getIDin interfacecom.helger.base.id.IHasID<String>
-
getFromIDOrNull
-
getFromIDOrDefault
public static @Nullable ECryptoKeyAgreementMethod getFromIDOrDefault(@Nullable String sID, @Nullable ECryptoKeyAgreementMethod eDefault)
-