All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.smartystreets.api.StaticCredentials Maven / Gradle / Ivy

There is a newer version: 3.18.3
Show newest version
package com.smartystreets.api;

/**
 * StaticCredentials takes a SmartyStreets Secret Key Pair, and 'signs' the request with it so the
* SmartyStreets API knows which SmartyStreets account and subscription is sending it. *

Look on the API Keys tab of your SmartyStreets account page to find/generate your keys.

*/ public class StaticCredentials implements Credentials { private String authId; private String authToken; public StaticCredentials(String authId, String authToken) { this.authId = authId; this.authToken = authToken; } public void sign(Request request) { request.putParameter("auth-id", this.authId); request.putParameter("auth-token", this.authToken); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy