Package org.jets3t.service.acl
Class EmailAddressGrantee
- java.lang.Object
-
- org.jets3t.service.acl.EmailAddressGrantee
-
- All Implemented Interfaces:
GranteeInterface
- Direct Known Subclasses:
UserByEmailAddressGrantee
public class EmailAddressGrantee extends Object implements GranteeInterface
Represents an Email Grantee, that is a grantee identified by their email address and authenticated by an Amazon system.- Author:
- James Murty
-
-
Constructor Summary
Constructors Constructor Description EmailAddressGrantee()Default construtor.EmailAddressGrantee(String emailAddress)Constructs an email grantee with the given email address.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetIdentifier()Returns the grantee's email address (ID).inthashCode()voidsetIdentifier(String emailAddress)Set the email address as the grantee's ID.StringtoXml()com.jamesmurty.utils.XMLBuildertoXMLBuilder()
-
-
-
Constructor Detail
-
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
public EmailAddressGrantee(String emailAddress)
Constructs an email grantee with the given email address.- Parameters:
emailAddress-
-
-
Method Detail
-
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
public void setIdentifier(String emailAddress)
Set the email address as the grantee's ID.- Specified by:
setIdentifierin interfaceGranteeInterface
-
getIdentifier
public String getIdentifier()
Returns the grantee's email address (ID).- Specified by:
getIdentifierin interfaceGranteeInterface
-
-