Package com.braintreegateway
Class ClientTokenGateway
- java.lang.Object
-
- com.braintreegateway.ClientTokenGateway
-
public class ClientTokenGateway extends Object
Generates client tokens, which are used to authenticate requests made directly on behalf of merchants This class does not need to be instantiated directly. Instead, useBraintreeGateway.clientToken()to get an instance of this class:BraintreeGateway gateway = new BraintreeGateway(...); gateway.clientToken().generate(...)
-
-
Field Summary
Fields Modifier and Type Field Description private Configurationconfigurationprivate Httphttp
-
Constructor Summary
Constructors Constructor Description ClientTokenGateway(Http http, Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringgenerate()Stringgenerate(ClientTokenRequest request)private voidverifyOptions(ClientTokenRequest request)
-
-
-
Field Detail
-
http
private Http http
-
configuration
private Configuration configuration
-
-
Constructor Detail
-
ClientTokenGateway
public ClientTokenGateway(Http http, Configuration configuration)
-
-
Method Detail
-
generate
public String generate()
-
generate
public String generate(ClientTokenRequest request)
-
verifyOptions
private void verifyOptions(ClientTokenRequest request)
-
-