public class CanonicalGrantee extends Object implements GranteeInterface
Canonical grantees may have an associated Display Name, which is a human-friendly name that Amazon has linked to the canonical ID (eg the user's login name).
Constructor and Description |
---|
CanonicalGrantee()
Default constructor.
|
CanonicalGrantee(String identifier)
Constructs a grantee with the given canonical ID.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDisplayName() |
String |
getIdentifier() |
int |
hashCode() |
void |
setDisplayName(String displayName) |
void |
setIdentifier(String id) |
String |
toString() |
String |
toXml() |
com.jamesmurty.utils.XMLBuilder |
toXMLBuilder() |
public CanonicalGrantee()
Warning! If created with this constructor this class will not represent a valid grantee until the identifier is set.
public CanonicalGrantee(String identifier)
identifier
- Canonical IDpublic String toXml() throws TransformerException, ParserConfigurationException, FactoryConfigurationError
toXml
in interface GranteeInterface
TransformerException
ParserConfigurationException
FactoryConfigurationError
public com.jamesmurty.utils.XMLBuilder toXMLBuilder() throws TransformerException, ParserConfigurationException, FactoryConfigurationError
toXMLBuilder
in interface GranteeInterface
TransformerException
ParserConfigurationException
FactoryConfigurationError
public void setIdentifier(String id)
setIdentifier
in interface GranteeInterface
public String getIdentifier()
getIdentifier
in interface GranteeInterface
public void setDisplayName(String displayName)
public String getDisplayName()
Copyright © 2006–2018. All rights reserved.