public class Principal extends java.lang.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 java.lang.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(org.w3c.dom.Element principalElement) |
static Principal |
getAllPrincipal() |
static Principal |
getAuthenticatedPrincipal() |
java.lang.String |
getHref() |
static Principal |
getHrefPrincipal(java.lang.String href) |
DavPropertyName |
getPropertyName() |
static Principal |
getPropertyPrincipal(DavPropertyName propertyName) |
static Principal |
getSelfPrincipal() |
static Principal |
getUnauthenticatedPrincipal() |
org.w3c.dom.Element |
toXml(org.w3c.dom.Document document)
Returns the xml representation of the implementing object as
Element . |
public static final java.lang.String XML_PRINCIPAL
public java.lang.String getHref()
null
otherwise.public DavPropertyName getPropertyName()
null
otherwise.public org.w3c.dom.Element toXml(org.w3c.dom.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 getHrefPrincipal(java.lang.String href)
public static Principal createFromXml(org.w3c.dom.Element principalElement) throws DavException
DavException
Copyright © 2010 - 2020 Adobe. All Rights Reserved