• Main Page
  • Classes
  • Files
  • File List

include/S3/S3Grantee.h

00001 /*
00002  * Copyright 2010 Amazon.com, Inc. or its affiliates. All Rights Reserved.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License").
00005  * You may not use this file except in compliance with the License.
00006  * A copy of the License is located at
00007  *
00008  *  http://aws.amazon.com/apache2.0
00009  *
00010  * or in the "license" file accompanying this file. This file is distributed
00011  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
00012  * express or implied. See the License for the specific language governing
00013  * permissions and limitations under the License.
00014  */
00015 
00016 #import <Foundation/Foundation.h>
00017 #import "S3Owner.h"
00018 
00019 #define kXsiNamespaceSpec             @"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"%@\""
00020 #define kXsiTypeCanonicalUser         @"CanonicalUser"
00021 #define kXsiTypeAmazonCustomerByEmail @"AmazonCustomerByEmail"
00022 #define kXsiTypeGroup                 @"Group"
00023 
00024 #define kS3GroupURIAllUsers  @"http://acs.amazonaws.com/groups/global/AllUsers"
00025 #define kS3GroupURIAuthUsers @"http://acs.amazonaws.com/groups/global/AuthenticatedUsers"
00026 
00027 
00035 @interface S3Grantee : S3Owner {
00036         NSString *URI;
00037         NSString *emailAddress;
00038 }
00039 
00041 @property(nonatomic, retain)NSString* URI;
00042 
00044 @property(nonatomic, retain)NSString* emailAddress;
00045 
00052 +(id)granteeWithID:(NSString *)theID withDisplayName:(NSString *)theDisplayName;
00053 
00059 +(id)granteeWithURI:(NSString *)theURI;
00060 
00067 +(id)granteeWithEmailAddress:(NSString *)theEmailAddress;
00068 
00070 +(id)allUsers;
00071 
00073 +(id)authenticatedUsers;
00074 
00076 -(NSString *)toXml;
00077 
00078 @end

Generated on Wed Jan 12 2011 14:21:38 for Amazon S3 by  doxygen 1.7.1