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.String getName()
    Return a name for logging purposes.
    Signature provideSignature​(java.util.Map options)
    This method will be called when a UploadRequest is about the start a signed upload.
  • Method Details

    • provideSignature

      Signature provideSignature​(java.util.Map options)
      This method will be called when a UploadRequest is about the start a signed upload.
      Parameters:
      options - The options provided for the upload. Needed for signing.
      Returns:
      A Signature object containing the generated signature, the api key and the signature's timestamp.
    • getName

      java.lang.String getName()
      Return a name for logging purposes.