Package com.cdancy.bitbucket.rest
Class BitbucketAuthentication.Builder
- java.lang.Object
-
- com.cdancy.bitbucket.rest.BitbucketAuthentication.Builder
-
- Enclosing class:
- BitbucketAuthentication
public static class BitbucketAuthentication.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitbucketAuthenticationbuild()Build and instance of BitbucketCredentials.BitbucketAuthentication.Buildercredentials(String basicCredentials)Set 'Basic' credentials.BitbucketAuthentication.Buildertoken(String tokenCredentials)Set 'Bearer' credentials.
-
-
-
Method Detail
-
credentials
public BitbucketAuthentication.Builder credentials(String basicCredentials)
Set 'Basic' credentials.- Parameters:
basicCredentials- value to use for 'Basic' credentials.- Returns:
- this Builder.
-
token
public BitbucketAuthentication.Builder token(String tokenCredentials)
Set 'Bearer' credentials.- Parameters:
tokenCredentials- value to use for 'Bearer' credentials.- Returns:
- this Builder.
-
build
public BitbucketAuthentication build()
Build and instance of BitbucketCredentials.- Returns:
- instance of BitbucketCredentials.
-
-