Generate a signed URL that allows access to a specific distribution and getSignedURLWithCannedPolicy public static String getSignedURLWithCannedPolicy( String resourceUrlOrPath,. Objects as specified in the policy document. Use Returns: A signed URL that will permit access to distribution and S3 policy - A policy document that describes the access permissions that privateKey - The RSA private key data that corresponding to the certificate keyPairId - Identifier of a public/private certificate keypair alreadyĬonfigured in your Amazon Web Services account. URL, and instead the resource path is nothing but the stream's " RTMP resources do not take the form of a HTTPS required protocol, the resource URL must start with For standard distributions the resource URL willīe " + distributionName + "/" + objectKey Parameters: resourceUrlOrPath - The URL or path that uniquely identifies a resource within aĭistribution. Generate a signed URL that allows access to distribution and S3 objectsīy applying access restrictions specified in a custom policy document.įor more information, see Overview of Signed URLs. String url2 = CloudFrontUrlSigner.getSignedURLWithCustomPolicy( Protocol, distributionDomain, privateKeyFile, String url1 = CloudFrontUrlSigner.getSignedURLWithCannedPolicy( String keyPairId = "APKAJCEOKRHC3XIVU5NA" ĭate dateLessThan = DateUtils.parseISO8601Date("T22:20:00.000Z") ĭate dateGreaterThan = DateUtils.parseISO8601Date("T22:20:00.000Z") String distributionDomain = "" įile privateKeyFile = new File("/path/to/cfcurlCloud/rsa-private-key.pem") Specifically before converting to a Date object, or else useĭateUtils to turn a UTC date String into a Date object. Utility class for generating pre-signed URLs for serving private CloudFrontĬontent.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |