Package com.google.cloud.storage
Class PostPolicyV4
java.lang.Object
com.google.cloud.storage.PostPolicyV4
Presigned V4 post policy. Instances of
PostPolicyV4
include a URL and a map of fields
that can be specified in an HTML form to submit a POST request to upload an object.
See POST Object for details of upload by using HTML forms.
See Storage.generateSignedPostPolicyV4(BlobInfo, long, TimeUnit, PostPolicyV4.PostFieldsV4, PostPolicyV4.PostConditionsV4, Storage.PostPolicyV4Option...)
for
example of usage.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Class for a specific POST policy document condition.static enum
static final class
A helper class for specifying conditions in a V4 POST Policy document.static final class
A helper class to define fields to be specified in a V4 POST request.static final class
Class for a V4 POST Policy document. -
Method Summary
-
Method Details
-
of
ConstructsPostPolicyV4
instance of the given URL and fields map.- Parameters:
url
- URL for the HTTP POST requestfields
- HTML form fields- Returns:
- constructed object
- Throws:
IllegalArgumentException
- if URL is malformed or fields are not valid
-
getUrl
Returns the URL for the HTTP POST request -
getFields
Returns the HTML form fields
-