Class Consumer.Builder
- java.lang.Object
 - 
- com.atlassian.bitbucket.jenkins.internal.applink.oauth.serviceprovider.consumer.Consumer.Builder
 
 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Consumerbuild()Constructs and returns the finalConsumerinstance.Consumer.Buildercallback(URI callback)Sets the default callback URL used after a request token has been authorized and returnsthisbuilder to allow other attributes to be setConsumer.BuilderconsumerSecret(String secret)Sets the consumer secret which is used in HMAC_SHA1 signature method and possibly other symmetric crypto methods.Consumer.Builderdescription(String description)Sets the description of the consumer as it would be displayed to the user and returnsthisbuilder to allow other attributes to be setConsumer.Buildername(String name)Sets thenameattribute of theConsumerobject under construction and returnsthisbuilder to allow other attributes to be setConsumer.BuilderpublicKey(PublicKey publicKey)Sets thepublicKeyattribute of theConsumerobject under construction and returnsthisbuilder to allow other attributes to be setConsumer.BuildersignatureMethod(Consumer.SignatureMethod signatureMethod)Sets thesignatureMethodattribute of theConsumerobject under construction and returnsthisbuilder to allow other attributes to be set 
 - 
 
- 
- 
Constructor Detail
- 
Builder
public Builder(String key)
 
 - 
 
- 
Method Detail
- 
name
public Consumer.Builder name(String name)
Sets thenameattribute of theConsumerobject under construction and returnsthisbuilder to allow other attributes to be set- Parameters:
 name- value to be used as thenameattribute of theConsumerbeing constructed- Returns:
 thisbuilder
 
- 
signatureMethod
public Consumer.Builder signatureMethod(Consumer.SignatureMethod signatureMethod)
Sets thesignatureMethodattribute of theConsumerobject under construction and returnsthisbuilder to allow other attributes to be set- Parameters:
 signatureMethod-SignatureMethodto be used when signing requests as this consumer- Returns:
 thisbuilder
 
- 
publicKey
public Consumer.Builder publicKey(PublicKey publicKey)
Sets thepublicKeyattribute of theConsumerobject under construction and returnsthisbuilder to allow other attributes to be set- Parameters:
 publicKey- RSAPublicKeyto be used as thepublicKeyattribute of theConsumerbeing constructed- Returns:
 thisbuilder
 
- 
description
public Consumer.Builder description(String description)
Sets the description of the consumer as it would be displayed to the user and returnsthisbuilder to allow other attributes to be set- Parameters:
 description- the description of the consumer as it would be displayed to the user- Returns:
 thisbuilder
 
- 
callback
public Consumer.Builder callback(URI callback)
Sets the default callback URL used after a request token has been authorized and returnsthisbuilder to allow other attributes to be set- Parameters:
 callback- the default callback URI used after a request token has been authorized- Returns:
 thisbuilder
 
- 
consumerSecret
public Consumer.Builder consumerSecret(String secret)
Sets the consumer secret which is used in HMAC_SHA1 signature method and possibly other symmetric crypto methods.- Parameters:
 secret- the secret- Returns:
 thisbuilder
 
- 
build
public Consumer build()
Constructs and returns the finalConsumerinstance.- Returns:
 - the final 
Consumerinstance 
 
 - 
 
 -