Class OAuthHmacSigner

  • All Implemented Interfaces:
    OAuthSigner

    @Beta
    public final class OAuthHmacSigner
    extends java.lang.Object
    implements OAuthSigner
    Beta
    OAuth "HMAC-SHA1" signature method.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String clientSharedSecret
      Client-shared secret or null for none.
      java.lang.String tokenSharedSecret
      Token-shared secret or null for none.
    • Constructor Summary

      Constructors 
      Constructor Description
      OAuthHmacSigner()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String computeSignature​(java.lang.String signatureBaseString)
      Returns the signature computed from the given signature base string.
      java.lang.String getSignatureMethod()
      Returns the signature method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • clientSharedSecret

        public java.lang.String clientSharedSecret
        Client-shared secret or null for none.
      • tokenSharedSecret

        public java.lang.String tokenSharedSecret
        Token-shared secret or null for none.
    • Constructor Detail

      • OAuthHmacSigner

        public OAuthHmacSigner()
    • Method Detail

      • getSignatureMethod

        public java.lang.String getSignatureMethod()
        Description copied from interface: OAuthSigner
        Returns the signature method.
        Specified by:
        getSignatureMethod in interface OAuthSigner
      • computeSignature

        public java.lang.String computeSignature​(java.lang.String signatureBaseString)
                                          throws java.security.GeneralSecurityException
        Description copied from interface: OAuthSigner
        Returns the signature computed from the given signature base string.
        Specified by:
        computeSignature in interface OAuthSigner
        Throws:
        java.security.GeneralSecurityException - general security exception