public enum EidasProtocolVersion extends Enum<EidasProtocolVersion>
Enum Constant and Description |
---|
PROTOCOL_VERSION_1_1 |
PROTOCOL_VERSION_1_2 |
Modifier and Type | Method and Description |
---|---|
static List<EidasProtocolVersion> |
fromString(List<String> versions)
Search the Enum values of a technical specifications implementation
|
static EidasProtocolVersion |
fromString(String version)
Search the Enum value of a technical specifications implementation
|
static EidasProtocolVersion |
getHighestProtocolVersion(List<EidasProtocolVersion> protocolVersionList)
Get the highest protocol version from a list of protocol versions.
|
boolean |
isHigherProtocolVersion(EidasProtocolVersion eidasProtocolVersion)
Check if the current protocol version is bigger than the one in parameter
|
String |
toString() |
static EidasProtocolVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EidasProtocolVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EidasProtocolVersion PROTOCOL_VERSION_1_2
public static final EidasProtocolVersion PROTOCOL_VERSION_1_1
public static EidasProtocolVersion[] values()
for (EidasProtocolVersion c : EidasProtocolVersion.values()) System.out.println(c);
public static EidasProtocolVersion 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 nullpublic static EidasProtocolVersion fromString(String version)
version
- the value of the searched protocol version.public static List<EidasProtocolVersion> fromString(List<String> versions)
versions
- the list of values of the searched protocol versions.public static EidasProtocolVersion getHighestProtocolVersion(List<EidasProtocolVersion> protocolVersionList)
protocolVersionList
- the list of EidasProtocolVersions froms which to find the highest one.public boolean isHigherProtocolVersion(EidasProtocolVersion eidasProtocolVersion)
eidasProtocolVersion
- the other protocol versionpublic String toString()
toString
in class Enum<EidasProtocolVersion>
Copyright © 2020. All Rights Reserved.