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 TypeMethodDescriptionbooleanReturns the grantee's email address (ID).inthashCode()voidsetIdentifier(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:
toXmlin interfaceGranteeInterface- Returns:
- the grantee represented in an XML fragment compatible with the S3 REST interface.
- Throws:
TransformerExceptionParserConfigurationExceptionFactoryConfigurationError
-
toXMLBuilder
public com.jamesmurty.utils.XMLBuilder toXMLBuilder() throws TransformerException, ParserConfigurationException, FactoryConfigurationError- Specified by:
toXMLBuilderin interfaceGranteeInterface- Throws:
TransformerExceptionParserConfigurationExceptionFactoryConfigurationError
-
setIdentifier
Set the email address as the grantee's ID.- Specified by:
setIdentifierin interfaceGranteeInterface
-
getIdentifier
Returns the grantee's email address (ID).- Specified by:
getIdentifierin interfaceGranteeInterface
-
equals
-
hashCode
public int hashCode()
-