Package com.github.sardine
Enum DavPrincipal.PrincipalType
- All Implemented Interfaces:
Serializable,Comparable<DavPrincipal.PrincipalType>,java.lang.constant.Constable
- Enclosing class:
- DavPrincipal
public static enum DavPrincipal.PrincipalType extends Enum<DavPrincipal.PrincipalType>
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
-
Enum Constant Summary
Enum Constants Enum Constant Description HREFPrincipal is a String reference to an existing principal (url)KEYPrincipal is String as one of the special values: all, authenticated, unauthenticated, selfPROPERTYPrincipal is QNAME referencing a property (eg: DAV::owner, custom:someGroupId) that itself contains a href to an existing principal -
Method Summary
Modifier and Type Method Description static DavPrincipal.PrincipalTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DavPrincipal.PrincipalType[]values()Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-