Interface BitbucketAuthenticatedUserClient
-
- All Known Implementing Classes:
BitbucketAuthenticatedUserClientImpl
public interface BitbucketAuthenticatedUserClient
Client to retrieve the username for the credentials used.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>
getAuthenticatedUser()
Get the username associated with the provided credentials.
-
-
-
Method Detail
-
getAuthenticatedUser
Optional<String> getAuthenticatedUser()
Get the username associated with the provided credentials.- Returns:
- The associated username, or
Optional.empty()
if there is none - Throws:
AuthorizationException
- if the credentials did not allow access to the given urlNoContentException
- if the server did not respond with a bodyConnectionFailureException
- if the server did not respondNotFoundException
- if the requested url does not existBadRequestException
- if the request was malformed and thus rejected by the serverServerErrorException
- if the server failed to process the requestBitbucketClientException
- for all errors not already captured
-
-