@@ -45,6 +45,7 @@ public class ZencoderThumbnail {
45
45
* S3
46
46
*/
47
47
private boolean isPublic = false ;
48
+ private String credentials ;
48
49
private List <ZencoderS3AccessControlItem > aclItems = new ArrayList <ZencoderS3AccessControlItem >();
49
50
50
51
public Element createXML (Document document ) {
@@ -99,6 +100,12 @@ public Element createXML(Document document) {
99
100
Node publicNode = document .createElement ("public" );
100
101
publicNode .setTextContent (this .isPublic ? "1" : "0" );
101
102
root .appendChild (publicNode );
103
+
104
+ if (this .credentials != null ) {
105
+ Node credentialsNode = document .createElement ("credentials" );
106
+ credentialsNode .setTextContent (this .credentials );
107
+ root .appendChild (credentialsNode );
108
+ }
102
109
103
110
if (this .aclItems .size () != 0 ) {
104
111
Element acl = document .createElement ("access-controls" );
@@ -143,6 +150,10 @@ public ZencoderThumbnailFormat getFormat() {
143
150
public boolean isPublic () {
144
151
return isPublic ;
145
152
}
153
+
154
+ public String getCredentials () {
155
+ return credentials ;
156
+ }
146
157
147
158
148
159
public void setFormat (ZencoderThumbnailFormat format ) {
@@ -175,6 +186,10 @@ public void setPrefix(String prefix) {
175
186
public void setPublic (boolean isPublic ) {
176
187
this .isPublic = isPublic ;
177
188
}
189
+
190
+ public void setCredentials (String credentials ) {
191
+ this .credentials = credentials ;
192
+ }
178
193
179
194
public void addAcl (ZencoderS3AccessControlItem item ) {
180
195
this .aclItems .add (item );
0 commit comments