public enum EPeppolAS2Version extends Enum<EPeppolAS2Version> implements com.helger.commons.id.IHasID<String>
| Enum Constant and Description |
|---|
V1
Deprecated.
|
V2
The PEPPOL AS2 v2 transport profile v2 (SHA-256).
|
| Modifier and Type | Method and Description |
|---|---|
com.helger.as2lib.crypto.ECryptoAlgorithmSign |
getCryptoAlgorithmSign() |
static EPeppolAS2Version |
getFromIDOrNull(String sID)
Find the pre-defined transport profile with the passed ID.
|
String |
getID() |
com.helger.peppol.smp.ISMPTransportProfile |
getTransportProfile() |
static EPeppolAS2Version |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EPeppolAS2Version[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final EPeppolAS2Version V1
public static final EPeppolAS2Version V2
public static EPeppolAS2Version[] values()
for (EPeppolAS2Version c : EPeppolAS2Version.values()) System.out.println(c);
public static EPeppolAS2Version valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnull @Nonempty public String getID()
getID in interface com.helger.commons.id.IHasID<String>@Nonnull public com.helger.peppol.smp.ISMPTransportProfile getTransportProfile()
@Nonnull public com.helger.as2lib.crypto.ECryptoAlgorithmSign getCryptoAlgorithmSign()
@Nullable public static EPeppolAS2Version getFromIDOrNull(@Nullable String sID)
sID - The ID to be searched. May be null.null if no AS2 version was found.Copyright © 2014–2020 Philip Helger. All rights reserved.