Authenticator.java from stripe/stripe-java
// Source: https://github.com/stripe/stripe-java | License: MIT | Copyright 2011- Stripe, Inc. (https://stripe.com)
// Provided via justclaw.it.com; keep this notice with the code.
package com.stripe.net;
import com.stripe.exception.StripeException;
/**
* Interface for applying authentication to a request. This is used by {@link StripeResponseGetter}
* to apply authentication to requests before they are sent. Implementations of this interface
* should not modify the request in-place, but should instead return a new request with the
* appropriate authentication headers applied. The default implementation of this interface is
* {@link BearerTokenAuthenticator}, which applies the API key as a Bearer token in the
* Authorization header. Users can also implement this interface to provid
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key