Enum LevelofAssuranceAuthenticationContextURI.LoaEnum
- java.lang.Object
-
- java.lang.Enum<LevelofAssuranceAuthenticationContextURI.LoaEnum>
-
- se.litsec.swedisheid.opensaml.saml2.authentication.LevelofAssuranceAuthenticationContextURI.LoaEnum
-
- All Implemented Interfaces:
Serializable,Comparable<LevelofAssuranceAuthenticationContextURI.LoaEnum>
- Enclosing class:
- LevelofAssuranceAuthenticationContextURI
public static enum LevelofAssuranceAuthenticationContextURI.LoaEnum extends Enum<LevelofAssuranceAuthenticationContextURI.LoaEnum>
Enum for Level of Assurance.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOA_1Level of Assurance 1.LOA_2Level of Assurance 2.LOA_3Level of Assurance 3.LOA_3_UNCERTIFIEDUncertified (self-declared) LoA 3.LOA_4Level of Assurance 4.LOA_EIDAS_HIGHeIDAS "high".LOA_EIDAS_HIGH_NOTIFIEDeIDAS "high" - notified eID scheme.LOA_EIDAS_HIGH_UNCERTIFIEDUncertified eIDAS "high".LOA_EIDAS_LOWeIDAS "low".LOA_EIDAS_LOW_NOTIFIEDeIDAS "low" - notified eID scheme.LOA_EIDAS_LOW_UNCERTIFIEDUncertified eIDAS "low".LOA_EIDAS_SUBSTANTIALeIDAS "substantial".LOA_EIDAS_SUBSTANTIAL_NOTIFIEDeIDAS "substantial" - notified eID scheme.LOA_EIDAS_SUBSTANTIAL_UNCERTIFIEDUncertified eIDAS "substantial".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseUri()Returns the base URI when the LoA represents a notified URI.intgetLevel()Returns the numeric level for this LoA.StringgetUri()Returns the URI for this LoA as defined by the Swedish e-identification board.booleanisCertified()Predicate that tells if this LoA represents a certified scheme.booleanisEidasUri()Predicate that tells if this LoA represents an eIDAS authentication context.booleanisNotified()Indicates whether the identifier is an URI for a notified eID scheme.static LevelofAssuranceAuthenticationContextURI.LoaEnumparse(String uri)Given a URI the method returns the enum value matching.static LevelofAssuranceAuthenticationContextURI.LoaEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static LevelofAssuranceAuthenticationContextURI.LoaEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOA_1
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_1
Level of Assurance 1.
-
LOA_2
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_2
Level of Assurance 2.
-
LOA_3
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_3
Level of Assurance 3.
-
LOA_3_UNCERTIFIED
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_3_UNCERTIFIED
Uncertified (self-declared) LoA 3.
-
LOA_4
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_4
Level of Assurance 4.
-
LOA_EIDAS_LOW
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_EIDAS_LOW
eIDAS "low".
-
LOA_EIDAS_LOW_NOTIFIED
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_EIDAS_LOW_NOTIFIED
eIDAS "low" - notified eID scheme.
-
LOA_EIDAS_LOW_UNCERTIFIED
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_EIDAS_LOW_UNCERTIFIED
Uncertified eIDAS "low".
-
LOA_EIDAS_SUBSTANTIAL
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_EIDAS_SUBSTANTIAL
eIDAS "substantial".
-
LOA_EIDAS_SUBSTANTIAL_NOTIFIED
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_EIDAS_SUBSTANTIAL_NOTIFIED
eIDAS "substantial" - notified eID scheme.
-
LOA_EIDAS_SUBSTANTIAL_UNCERTIFIED
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_EIDAS_SUBSTANTIAL_UNCERTIFIED
Uncertified eIDAS "substantial".
-
LOA_EIDAS_HIGH
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_EIDAS_HIGH
eIDAS "high".
-
LOA_EIDAS_HIGH_NOTIFIED
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_EIDAS_HIGH_NOTIFIED
eIDAS "high" - notified eID scheme.
-
LOA_EIDAS_HIGH_UNCERTIFIED
public static final LevelofAssuranceAuthenticationContextURI.LoaEnum LOA_EIDAS_HIGH_UNCERTIFIED
Uncertified eIDAS "high".
-
-
Method Detail
-
values
public static LevelofAssuranceAuthenticationContextURI.LoaEnum[] 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 (LevelofAssuranceAuthenticationContextURI.LoaEnum c : LevelofAssuranceAuthenticationContextURI.LoaEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LevelofAssuranceAuthenticationContextURI.LoaEnum 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
-
parse
public static LevelofAssuranceAuthenticationContextURI.LoaEnum parse(String uri)
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
-
getLevel
public int getLevel()
Returns the numeric level for this LoA.- Returns:
- the numeric level
-
getUri
public String getUri()
Returns the URI for this LoA as defined by the Swedish e-identification board.- Returns:
- an URI
-
isNotified
public boolean isNotified()
Indicates whether the identifier is an URI for a notified eID scheme.- Returns:
- if the identifier is an URI for a notified eID scheme true is returned, otherwise false
-
getBaseUri
public String getBaseUri()
Returns the base URI when the LoA represents a notified URI.- Returns:
- the base URI, or the URI itself if the URI represents a "plain" authentication context
-
isEidasUri
public boolean isEidasUri()
Predicate that tells if this LoA represents an eIDAS authentication context.- Returns:
- if the LoA represents an eIDAS authentication context true is returned, otherwise false
-
isCertified
public boolean isCertified()
Predicate that tells if this LoA represents a certified scheme.- Returns:
- true if certified and false if uncertified
-
-