org.jets3t.service.acl
Class EmailAddressGrantee

java.lang.Object
  extended by org.jets3t.service.acl.EmailAddressGrantee
All Implemented Interfaces:
GranteeInterface

public class EmailAddressGrantee
extends java.lang.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
EmailAddressGrantee()
          Default construtor.
EmailAddressGrantee(java.lang.String emailAddress)
          Constructs an email grantee with the given email address.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getIdentifier()
          Returns the grantee's email address (ID).
 int hashCode()
           
 void setIdentifier(java.lang.String emailAddress)
          Set the email address as the grantee's ID.
 java.lang.String toXml()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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(java.lang.String emailAddress)
Constructs an email grantee with the given email address.

Parameters:
emailAddress -
Method Detail

toXml

public java.lang.String toXml()
Specified by:
toXml in interface GranteeInterface
Returns:
the grantee represented in an XML fragment compatible with the S3 REST interface.

setIdentifier

public void setIdentifier(java.lang.String emailAddress)
Set the email address as the grantee's ID.

Specified by:
setIdentifier in interface GranteeInterface

getIdentifier

public java.lang.String getIdentifier()
Returns the grantee's email address (ID).

Specified by:
getIdentifier in interface GranteeInterface

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object