Skip to content

Commit 3f8f03b

Browse files
author
Stu Arnett
committed
Minor javadoc addition for BucketPolicyStatement.setRawPrincipal to provide a useful example value
1 parent 749db85 commit 3f8f03b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/emc/object/s3/bean/BucketPolicyStatement.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ public void setPrincipal(String principal) {
7777
else this.principal = principal;
7878
}
7979

80+
/**
81+
* If you want to set the principal to something other than "*", you'll need to set a raw JSON value here.
82+
* I.e. <code>"{\"AWS\":[\"arn:ecs:iam::ns:user/my-user\",\"arn:ecs:iam::ns:user/other-user\"]}"</code>
83+
*/
8084
public void setRawPrincipal(String principal) { this.principal = principal; }
8185

8286
@XmlElement(name = "Action")

0 commit comments

Comments
 (0)