Represents a grant for an bucket/object ACL. More...
#import <S3Grant.h>
Public Member Functions | |
(id) | - initWithGrantee:withPermission: |
Initializes the object with the specified grantee and permission. | |
(NSString *) | - toXml |
Returns the XML represenation of the grant. | |
Static Public Member Functions | |
(id) | + grantWithGrantee:withPermission: |
Returns an initialized instance with the specified grantee and permission. | |
Properties | |
S3Grantee * | grantee |
Gets and sets the grantee for the grant. | |
S3Permission * | permission |
Gets and sets the permission for the grant. |
Represents a grant for an bucket/object ACL.
A grant contains an S3Grantee and a S3Permission for that S3Grantee.
For more information on Grants/ACLs refer:
+ (id S3Grant.)grantWithGrantee: | (S3Grantee *) | theGrantee | ||
withPermission: | (S3Permission *) | thePermission | ||
Returns an initialized instance with the specified grantee and permission.
theGrantee | The grantee for the grant. | |
thePermission | The permission to grant the grantee. |
- (id S3Grant.)initWithGrantee: | (S3Grantee *) | theGrantee | ||
withPermission: | (S3Permission *) | thePermission | ||
Initializes the object with the specified grantee and permission.
theGrantee | The grantee for the grant. | |
thePermission | The permission to grant the grantee. |
- (NSString * S3Grant.)toXml |
Returns the XML represenation of the grant.