Package org.jets3t.service.acl
Class CanonicalGrantee
java.lang.Object
org.jets3t.service.acl.CanonicalGrantee
- All Implemented Interfaces:
GranteeInterface
- Direct Known Subclasses:
UserByIdGrantee
Represents a grantee identified by their canonical Amazon ID, which is something along the lines
of an Amazon-internal ID specific to a user. For example, Amazon can map a grantee identified
by an email address to a canonical ID.
Canonical grantees may have an associated Display Name, which is a human-friendly name that Amazon has linked to the canonical ID (eg the user's login name).
- Author:
- James Murty
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CanonicalGrantee
(String identifier) Constructs a grantee with the given canonical ID. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
setDisplayName
(String displayName) void
setIdentifier
(String id) toString()
toXml()
com.jamesmurty.utils.XMLBuilder
-
Constructor Details
-
CanonicalGrantee
public CanonicalGrantee()Default constructor.Warning! If created with this constructor this class will not represent a valid grantee until the identifier is set.
-
CanonicalGrantee
Constructs a grantee with the given canonical ID.- Parameters:
identifier
-
-
-
Method Details
-
toXml
public String toXml() throws TransformerException, ParserConfigurationException, FactoryConfigurationError- Specified by:
toXml
in interfaceGranteeInterface
- Returns:
- the grantee represented in an XML fragment compatible with the S3 REST interface.
- Throws:
TransformerException
ParserConfigurationException
FactoryConfigurationError
-
toXMLBuilder
public com.jamesmurty.utils.XMLBuilder toXMLBuilder() throws TransformerException, ParserConfigurationException, FactoryConfigurationError- Specified by:
toXMLBuilder
in interfaceGranteeInterface
- Throws:
TransformerException
ParserConfigurationException
FactoryConfigurationError
-
setIdentifier
- Specified by:
setIdentifier
in interfaceGranteeInterface
-
getIdentifier
- Specified by:
getIdentifier
in interfaceGranteeInterface
-
setDisplayName
-
getDisplayName
-
equals
-
hashCode
public int hashCode() -
toString
-