Package org.jets3t.service.acl
Class EmailAddressGrantee
java.lang.Object
org.jets3t.service.acl.EmailAddressGrantee
- All Implemented Interfaces:
GranteeInterface
- Direct Known Subclasses:
UserByEmailAddressGrantee
Represents an Email Grantee, that is a grantee identified by their email address and
authenticated by an Amazon system.
- Author:
- James Murty
-
Constructor Summary
ConstructorsConstructorDescriptionDefault construtor.EmailAddressGrantee
(String emailAddress) Constructs an email grantee with the given email address. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the grantee's email address (ID).int
hashCode()
void
setIdentifier
(String emailAddress) Set the email address as the grantee's ID.toXml()
com.jamesmurty.utils.XMLBuilder
-
Constructor Details
-
EmailAddressGrantee
public EmailAddressGrantee()Default construtor.Warning! If this constructor is used the class will not represent a valid email grantee until the identifier has been set.
-
EmailAddressGrantee
Constructs an email grantee with the given email address.- Parameters:
emailAddress
-
-
-
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
Set the email address as the grantee's ID.- Specified by:
setIdentifier
in interfaceGranteeInterface
-
getIdentifier
Returns the grantee's email address (ID).- Specified by:
getIdentifier
in interfaceGranteeInterface
-
equals
-
hashCode
public int hashCode()
-