Package com.backblaze.b2.client
Class B2AccountAuthorizerSimpleImpl
- java.lang.Object
-
- com.backblaze.b2.client.B2AccountAuthorizerSimpleImpl
-
- All Implemented Interfaces:
B2AccountAuthorizer
public class B2AccountAuthorizerSimpleImpl extends java.lang.Object implements B2AccountAuthorizer
B2AccountAuthorizerSimpleImpl is the usual implementation of authorizing. Almost everyone is expected to use this right now.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
B2AccountAuthorizerSimpleImpl.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description B2AccountAuthorization
authorize(B2StorageClientWebifier webifier)
This will be called to get a new B2AccountAuthorization instance.static B2AccountAuthorizerSimpleImpl.Builder
builder(java.lang.String applicationKeyId, java.lang.String applicationKey)
-
-
-
Method Detail
-
builder
public static B2AccountAuthorizerSimpleImpl.Builder builder(java.lang.String applicationKeyId, java.lang.String applicationKey)
-
authorize
public B2AccountAuthorization authorize(B2StorageClientWebifier webifier) throws B2Exception
Description copied from interface:B2AccountAuthorizer
This will be called to get a new B2AccountAuthorization instance.- Specified by:
authorize
in interfaceB2AccountAuthorizer
- Parameters:
webifier
- in case it's useful. :)- Returns:
- an account authorization for the account this represents.
- Throws:
B2Exception
- if it throws a B2UnauthorizedException, it must ensure that the requestCategory is set to ACCOUNT_AUTHORIZATION, so retries work properly.
-
-