Enum EntityRole
- java.lang.Object
-
- java.lang.Enum<EntityRole>
-
- com.nimbusds.openid.connect.sdk.federation.entities.EntityRole
-
- All Implemented Interfaces:
Serializable
,Comparable<EntityRole>
public enum EntityRole extends Enum<EntityRole>
Entity role in a federation trust chain.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INTERMEDIATE
Neither a leaf nor a trust anchor.LEAF
In a OpenID Connect Identity Federation an RP or an OP.TRUST_ANCHOR
Trusted third party.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EntityRole
valueOf(String name)
Returns the enum constant of this type with the specified name.static EntityRole[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRUST_ANCHOR
public static final EntityRole TRUST_ANCHOR
Trusted third party.
-
INTERMEDIATE
public static final EntityRole INTERMEDIATE
Neither a leaf nor a trust anchor.
-
LEAF
public static final EntityRole LEAF
In a OpenID Connect Identity Federation an RP or an OP.
-
-
Method Detail
-
values
public static EntityRole[] 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 (EntityRole c : EntityRole.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntityRole 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
-
-