All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.scribe.exceptions.OAuthSignatureException Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package org.scribe.exceptions;

/**
 * Specialized exception that represents a problem in the signature
 * 
 * @author Pablo Fernandez
 */
public class OAuthSignatureException extends OAuthException
{
  private static final long serialVersionUID = 1L;
  private static final String MSG = "Error while signing string: %s";
  
  /**
   * Default constructor
   * 
   * @param stringToSign plain string that gets signed (HMAC-SHA, etc)
   * @param e original exception
   */
  public OAuthSignatureException(String stringToSign, Exception e)
  {
    super(String.format(MSG, stringToSign), e);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy