Package com.cloudinary.android.signed
Interface SignatureProvider
public interface SignatureProvider
Provide an implementation of this class to
MediaManager.init(Context, SignatureProvider, Map) to enable signed uploads.
Note: If an api key and secret are provided to the library this interface is not required.-
Method Summary
Modifier and Type Method Description java.lang.StringgetName()Return a name for logging purposes.SignatureprovideSignature(java.util.Map options)This method will be called when aUploadRequestis about the start a signed upload.
-
Method Details
-
provideSignature
This method will be called when aUploadRequestis about the start a signed upload.- Parameters:
options- The options provided for the upload. Needed for signing.- Returns:
- A
Signatureobject containing the generated signature, the api key and the signature's timestamp.
-
getName
java.lang.String getName()Return a name for logging purposes.
-