Enum Class EidasLoaEnum
- All Implemented Interfaces:
Serializable
,Comparable<EidasLoaEnum>
,Constable
Enumeration representing an eIDAS Level of Assurance.
- Author:
- Martin Lindström
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptioneIDAS "high" Level of assurance.eIDAS "high" Level of assurance.eIDAS "low" Level of assurance.eIDAS "low" Level of assurance.eIDAS "substantial" Level of assurance.eIDAS "substantial" Level of assurance. -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
Returns the sorting order index.getUri()
Returns the URI for this LoA.static EidasLoaEnum
Given a URI the method returns the enum value matching.static EidasLoaEnum
Returns the enum constant of this class with the specified name.static EidasLoaEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOA_LOW_NON_NOTIFIED
eIDAS "low" Level of assurance. For non-notified eID scheme. -
LOA_LOW
eIDAS "low" Level of assurance. -
LOA_SUBSTANTIAL_NON_NOTIFIED
eIDAS "substantial" Level of assurance. For non-notified eID scheme. -
LOA_SUBSTANTIAL
eIDAS "substantial" Level of assurance. -
LOA_HIGH_NON_NOTIFIED
eIDAS "high" Level of assurance. For non-notified eID scheme. -
LOA_HIGH
eIDAS "high" Level of assurance.
-
-
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
-
getUri
Returns the URI for this LoA.- Returns:
- an URI
-
getOrder
public int getOrder()Returns the sorting order index.- Returns:
- the sorting order (the higher the strength, the higher the value)
-
parse
Given a URI the method returns the enum value matching.- Parameters:
uri
- URI- Returns:
- the matching enum value or
null
is no match is found
-