public class Principal extends Object implements XmlSerializable, SecurityConstants
Principal
encapsulates the DAV:principal element which identifies
the principal to which this ACE applies.
RFC 3744 defines the following structure for this element:
<!ELEMENT principal (href | all | authenticated | unauthenticated | property | self)>
Modifier and Type | Field and Description |
---|---|
static String |
XML_PRINCIPAL |
ACL, ACL_RESTRICTIONS, ALTERNATE_URI_SET, CURRENT_USER_PRIVILEGE_SET, GROUP, GROUP_MEMBER_SET, GROUP_MEMBERSHIP, INHERITED_ACL_SET, NAMESPACE, OWNER, PRINCIPAL_COLLECTION_SET, PRINCIPAL_RESOURCETYPE, PRINCIPAL_URL, SUPPORTED_PRIVILEGE_SET
Modifier and Type | Method and Description |
---|---|
static Principal |
createFromXml(Element principalElement) |
static Principal |
getAllPrincipal() |
static Principal |
getAuthenticatedPrincipal() |
String |
getHref() |
static Principal |
getHrefPrincipal(String href) |
DavPropertyName |
getPropertyName() |
static Principal |
getPropertyPrincipal(DavPropertyName propertyName) |
static Principal |
getSelfPrincipal() |
static Principal |
getUnauthenticatedPrincipal() |
Element |
toXml(Document document)
Returns the xml representation of the implementing object as
Element . |
public static final String XML_PRINCIPAL
public String getHref()
null
otherwise.public DavPropertyName getPropertyName()
null
otherwise.public Element toXml(Document document)
XmlSerializable
Element
. The given Document
is used
as factory and represents the owner document
of the returned DOM element.toXml
in interface XmlSerializable
document
- to be used as factory.XmlSerializable.toXml(Document)
public static Principal getAllPrincipal()
public static Principal getAuthenticatedPrincipal()
public static Principal getUnauthenticatedPrincipal()
public static Principal getSelfPrincipal()
public static Principal getPropertyPrincipal(DavPropertyName propertyName)
public static Principal createFromXml(Element principalElement) throws DavException
DavException
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.