Class PlaintextSignatureService

  • All Implemented Interfaces:
    SignatureService

    public class PlaintextSignatureService
    extends java.lang.Object
    implements SignatureService
    plaintext implementation of
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getSignature​(java.lang.String baseString, java.lang.String apiSecret, java.lang.String tokenSecret)
      Returns the signature
      java.lang.String getSignatureMethod()
      Returns the signature method/algorithm
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlaintextSignatureService

        public PlaintextSignatureService()
    • Method Detail

      • getSignature

        public java.lang.String getSignature​(java.lang.String baseString,
                                             java.lang.String apiSecret,
                                             java.lang.String tokenSecret)
        Returns the signature
        Specified by:
        getSignature in interface SignatureService
        Parameters:
        baseString - url-encoded string to sign
        apiSecret - api secret for your app
        tokenSecret - token secret (empty string for the request token step)
        Returns:
        signature
      • getSignatureMethod

        public java.lang.String getSignatureMethod()
        Returns the signature method/algorithm
        Specified by:
        getSignatureMethod in interface SignatureService
        Returns: