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.
| Enum Constant and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
static DavPrincipal.PrincipalType |
valueOf(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.
|
public static final DavPrincipal.PrincipalType HREF
public static final DavPrincipal.PrincipalType KEY
public static final DavPrincipal.PrincipalType PROPERTY
public static DavPrincipal.PrincipalType[] values()
for (DavPrincipal.PrincipalType c : DavPrincipal.PrincipalType.values()) System.out.println(c);
public static DavPrincipal.PrincipalType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2019. All rights reserved.