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 Consumer
build()
Constructs and returns the finalConsumer
instance.Consumer.Builder
callback(URI callback)
Sets the default callback URL used after a request token has been authorized and returnsthis
builder to allow other attributes to be setConsumer.Builder
consumerSecret(String secret)
Sets the consumer secret which is used in HMAC_SHA1 signature method and possibly other symmetric crypto methods.Consumer.Builder
description(String description)
Sets the description of the consumer as it would be displayed to the user and returnsthis
builder to allow other attributes to be setConsumer.Builder
name(String name)
Sets thename
attribute of theConsumer
object under construction and returnsthis
builder to allow other attributes to be setConsumer.Builder
publicKey(PublicKey publicKey)
Sets thepublicKey
attribute of theConsumer
object under construction and returnsthis
builder to allow other attributes to be setConsumer.Builder
signatureMethod(Consumer.SignatureMethod signatureMethod)
Sets thesignatureMethod
attribute of theConsumer
object under construction and returnsthis
builder to allow other attributes to be set
-
-
-
Constructor Detail
-
Builder
public Builder(String key)
-
-
Method Detail
-
name
public Consumer.Builder name(String name)
Sets thename
attribute of theConsumer
object under construction and returnsthis
builder to allow other attributes to be set- Parameters:
name
- value to be used as thename
attribute of theConsumer
being constructed- Returns:
this
builder
-
signatureMethod
public Consumer.Builder signatureMethod(Consumer.SignatureMethod signatureMethod)
Sets thesignatureMethod
attribute of theConsumer
object under construction and returnsthis
builder to allow other attributes to be set- Parameters:
signatureMethod
-SignatureMethod
to be used when signing requests as this consumer- Returns:
this
builder
-
publicKey
public Consumer.Builder publicKey(PublicKey publicKey)
Sets thepublicKey
attribute of theConsumer
object under construction and returnsthis
builder to allow other attributes to be set- Parameters:
publicKey
- RSAPublicKey
to be used as thepublicKey
attribute of theConsumer
being constructed- Returns:
this
builder
-
description
public Consumer.Builder description(String description)
Sets the description of the consumer as it would be displayed to the user and returnsthis
builder to allow other attributes to be set- Parameters:
description
- the description of the consumer as it would be displayed to the user- Returns:
this
builder
-
callback
public Consumer.Builder callback(URI callback)
Sets the default callback URL used after a request token has been authorized and returnsthis
builder to allow other attributes to be set- Parameters:
callback
- the default callback URI used after a request token has been authorized- Returns:
this
builder
-
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:
this
builder
-
build
public Consumer build()
Constructs and returns the finalConsumer
instance.- Returns:
- the final
Consumer
instance
-
-