AccessPolicy Property
The AccessPolicy are used to set permissions when a Bucket or an object is updated.
Syntax
public int getAccessPolicy(); public void setAccessPolicy(int accessPolicy);
Enumerated values: public final static int ptPrivate = 0; public final static int ptPublic_Read = 1; public final static int ptPublic_Read_Write = 2; public final static int ptAuthenticated_Read = 3; public final static int ptBucket_Owner_Read = 4; public final static int ptBucket_Owner_Full_Control = 5;
Remarks
Amazon S3 allows buckets and objects to be publicly accessible, this can be achieved by setting a suitable AccessPolicy.
Default Value
0