Enum Class DavPrincipal.PrincipalType
- All Implemented Interfaces:
Serializable, Comparable<DavPrincipal.PrincipalType>, Constable
- Enclosing class:
DavPrincipal
A "principal" is a distinct human or computational actor that initiates access to network resources. In this protocol, a principal is an HTTP resource that represents such an actor.
The DAV:principal element identifies the principal to which this ACE applies.
<!ELEMENT principal (href | all | authenticated | unauthenticated | property | self)>
The current user matches DAV:href only if that user is authenticated as being (or being a member of) the principal identified by the URL contained by that DAV:href.
Either a href or one of all,authenticated,unauthenticated,property,self.
DAV:property not supported.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPrincipal is a String reference to an existing principal (url)Principal is String as one of the special values: all, authenticated, unauthenticated, selfPrincipal is QNAME referencing a property (eg: DAV::owner, custom:someGroupId) that itself contains a href to an existing principal -
Method Summary
Modifier and TypeMethodDescriptionstatic DavPrincipal.PrincipalTypeReturns the enum constant of this class with the specified name.static DavPrincipal.PrincipalType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HREF
Principal is a String reference to an existing principal (url) -
KEY
Principal is String as one of the special values: all, authenticated, unauthenticated, self -
PROPERTY
Principal is QNAME referencing a property (eg: DAV::owner, custom:someGroupId) that itself contains a href to an existing principal
-
-
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
-