Package com.cloudconvert.resource
Class AbstractSignedUrlResource
java.lang.Object
com.cloudconvert.resource.AbstractResource
com.cloudconvert.resource.AbstractSignedUrlResource
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
AsyncSignedUrlResource,SignedUrlResource
public abstract class AbstractSignedUrlResource extends AbstractResource
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHMAC_SHA256Fields inherited from class com.cloudconvert.resource.AbstractResource
BEARER, HEADER_AUTHORIZATION, HEADER_USER_AGENT, INPUT_STREAM_TYPE_REFERENCE, JOB_RESPONSE_PAGEABLE_TYPE_REFERENCE, JOB_RESPONSE_TYPE_REFERENCE, MAP_STRING_TO_OBJECT_TYPE_REFERENCE, OPERATION_RESPONSE_PAGEABLE_TYPE_REFERENCE, TASK_RESPONSE_PAGEABLE_TYPE_REFERENCE, TASK_RESPONSE_TYPE_REFERENCE, USER_RESPONSE_TYPE_REFERENCE, V2, VALUE_USER_AGENT, VOID_TYPE_REFERENCE, WEBHOOKS_RESPONSE_PAGEABLE_TYPE_REFERENCE, WEBHOOKS_RESPONSE_TYPE_REFERENCE -
Constructor Summary
Constructors Constructor Description AbstractSignedUrlResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider) -
Method Summary
Modifier and Type Method Description java.lang.Stringsign(@NotNull java.lang.String base, @NotNull java.lang.String signingSecret, @NotNull java.util.Map<java.lang.String,TaskRequest> tasks)java.lang.Stringsign(@NotNull java.lang.String base, @NotNull java.lang.String signingSecret, @NotNull java.util.Map<java.lang.String,TaskRequest> tasks, java.lang.String cacheKey)Methods inherited from class com.cloudconvert.resource.AbstractResource
getHttpEntity, getHttpEntity, getHttpUriRequest, getHttpUriRequest, getJson, getSyncUri, getSyncUri, getUri, getUri, requestToMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.Closeable
close
-
Field Details
-
HMAC_SHA256
public static final java.lang.String HMAC_SHA256- See Also:
- Constant Field Values
-
-
Constructor Details
-
AbstractSignedUrlResource
public AbstractSignedUrlResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider)
-
-
Method Details
-
sign
public java.lang.String sign(@NotNull @NotNull java.lang.String base, @NotNull @NotNull java.lang.String signingSecret, @NotNull @NotNull java.util.Map<java.lang.String,TaskRequest> tasks, java.lang.String cacheKey) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, com.fasterxml.jackson.core.JsonProcessingException- Throws:
java.security.InvalidKeyExceptionjava.security.NoSuchAlgorithmExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
sign
public java.lang.String sign(@NotNull @NotNull java.lang.String base, @NotNull @NotNull java.lang.String signingSecret, @NotNull @NotNull java.util.Map<java.lang.String,TaskRequest> tasks) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, com.fasterxml.jackson.core.JsonProcessingException- Throws:
java.security.InvalidKeyExceptionjava.security.NoSuchAlgorithmExceptioncom.fasterxml.jackson.core.JsonProcessingException
-