Class OAuth1Secrets

java.lang.Object
org.glassfish.jersey.oauth1.signature.OAuth1Secrets

public class OAuth1Secrets extends Object
Contains the secrets used to generate and/or verify signatures.
Author:
Paul C. Bryan <pbryan@sun.com>
  • Constructor Details

    • OAuth1Secrets

      public OAuth1Secrets()
  • Method Details

    • getConsumerSecret

      public String getConsumerSecret()
      Returns the consumer secret.
    • setConsumerSecret

      public void setConsumerSecret(String consumerSecret)
    • consumerSecret

      public OAuth1Secrets consumerSecret(String consumerSecret)
      Builder pattern method to return OAuth1Secrets after setting consumer secret.
      Parameters:
      consumerSecret - the consumer secret.
    • getTokenSecret

      public String getTokenSecret()
      Returns request or access token.
    • setTokenSecret

      public void setTokenSecret(String tokenSecret)
      Sets request or access token.
    • tokenSecret

      public OAuth1Secrets tokenSecret(String tokenSecret)
      Builder pattern method to return OAuth1Secrets after setting consumer secret.
      Parameters:
      tokenSecret - the token secret.
    • clone

      public OAuth1Secrets clone()
      Overrides:
      clone in class Object