Enum Class SecurityPrincipal.Type
- All Implemented Interfaces:
Serializable, Comparable<SecurityPrincipal.Type>, Constable
- Enclosing class:
SecurityPrincipal
Closed principal types.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the stable persistence code.static SecurityPrincipal.TypefromCode(int code) Resolves one stable persistence code.static SecurityPrincipal.TypeReturns the enum constant of this class with the specified name.static SecurityPrincipal.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USER
Human administrative or requesting identity. -
SERVICE
Non-human authenticated service identity. -
ACCOUNT
Protocol-specific account identity. -
PUBLIC
Unauthenticated public identity.
-
-
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
-
code
public int code()Returns the stable persistence code.- Returns:
- encoded principal-type code
-
fromCode
Resolves one stable persistence code.- Parameters:
code- encoded principal-type code- Returns:
- corresponding principal type
- Throws:
IllegalArgumentException- ifcodeis unknown
-