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 boolean
equals(Object obj)
String
getIdentifier()
Returns the grantee's email address (ID).int
hashCode()
void
setIdentifier(String emailAddress)
Set the email address as the grantee's ID.String
toXml()
com.jamesmurty.utils.XMLBuilder
toXMLBuilder()
-
-
-
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:
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
public void setIdentifier(String emailAddress)
Set the email address as the grantee's ID.- Specified by:
setIdentifier
in interfaceGranteeInterface
-
getIdentifier
public String getIdentifier()
Returns the grantee's email address (ID).- Specified by:
getIdentifier
in interfaceGranteeInterface
-
-