Package se.litsec.eidas.opensaml.common
Enum EidasLoaEnum
- java.lang.Object
-
- java.lang.Enum<EidasLoaEnum>
-
- se.litsec.eidas.opensaml.common.EidasLoaEnum
-
- All Implemented Interfaces:
Serializable,Comparable<EidasLoaEnum>
public enum EidasLoaEnum extends Enum<EidasLoaEnum>
Enumeration representing an eIDAS Level of Assurance.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOA_HIGHeIDAS "high" Level of assurance.LOA_HIGH_NON_NOTIFIEDeIDAS "high" Level of assurance.LOA_LOWeIDAS "low" Level of assurance.LOA_LOW_NON_NOTIFIEDeIDAS "low" Level of assurance.LOA_SUBSTANTIALeIDAS "substantial" Level of assurance.LOA_SUBSTANTIAL_NON_NOTIFIEDeIDAS "substantial" Level of assurance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()Returns the sorting order index.StringgetUri()Returns the URI for this LoA.static EidasLoaEnumparse(String uri)Given a URI the method returns the enum value matching.static EidasLoaEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static EidasLoaEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOA_LOW_NON_NOTIFIED
public static final EidasLoaEnum LOA_LOW_NON_NOTIFIED
eIDAS "low" Level of assurance. For non-notified eID scheme.
-
LOA_LOW
public static final EidasLoaEnum LOA_LOW
eIDAS "low" Level of assurance.
-
LOA_SUBSTANTIAL_NON_NOTIFIED
public static final EidasLoaEnum LOA_SUBSTANTIAL_NON_NOTIFIED
eIDAS "substantial" Level of assurance. For non-notified eID scheme.
-
LOA_SUBSTANTIAL
public static final EidasLoaEnum LOA_SUBSTANTIAL
eIDAS "substantial" Level of assurance.
-
LOA_HIGH_NON_NOTIFIED
public static final EidasLoaEnum LOA_HIGH_NON_NOTIFIED
eIDAS "high" Level of assurance. For non-notified eID scheme.
-
LOA_HIGH
public static final EidasLoaEnum LOA_HIGH
eIDAS "high" Level of assurance.
-
-
Method Detail
-
values
public static EidasLoaEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EidasLoaEnum c : EidasLoaEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EidasLoaEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getUri
public String 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
public static EidasLoaEnum parse(String uri)
Given a URI the method returns the enum value matching.- Parameters:
uri- URI- Returns:
- the matching enum value or
nullis no match is found
-
-