public class HttpSignatureConfigurator extends Object
HttpClientBuilder to use
HTTP Signatures authentication.| Constructor and Description |
|---|
HttpSignatureConfigurator(KeyPair keyPair,
org.apache.http.auth.Credentials credentials,
boolean useNativeCodeToSign)
Deprecated.
Prefer
HttpSignatureConfigurator(KeyPair,
Credentials, ThreadLocalSigner) if configuration of Signer
algorithm, hashes, or providers is required. |
HttpSignatureConfigurator(KeyPair keyPair,
org.apache.http.auth.Credentials credentials,
ThreadLocalSigner signer)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
Configures a
HttpClientBuilder to use HTTP Signature authentication. |
org.apache.http.client.AuthenticationStrategy |
getAuthenticationStrategy() |
org.apache.http.auth.AuthScheme |
getAuthScheme() |
org.apache.http.auth.Credentials |
getCredentials() |
KeyPair |
getKeyPair() |
@Deprecated public HttpSignatureConfigurator(KeyPair keyPair, org.apache.http.auth.Credentials credentials, boolean useNativeCodeToSign)
HttpSignatureConfigurator(KeyPair,
Credentials, ThreadLocalSigner) if configuration of Signer
algorithm, hashes, or providers is required.keyPair - public/private keypair object used to sign HTTP requestscredentials - credentials containing a usernameuseNativeCodeToSign - true to enable native code acceleration of cryptographic singingpublic HttpSignatureConfigurator(KeyPair keyPair, org.apache.http.auth.Credentials credentials, ThreadLocalSigner signer)
keyPair - public/private keypair object used to sign HTTP requestscredentials - credentials containing a usernamesigner - For use with http signaturepublic void configure(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
HttpClientBuilder to use HTTP Signature authentication.httpClientBuilder - build to configurepublic KeyPair getKeyPair()
public org.apache.http.auth.Credentials getCredentials()
public org.apache.http.auth.AuthScheme getAuthScheme()
public org.apache.http.client.AuthenticationStrategy getAuthenticationStrategy()
Copyright © 2015–2020 Joyent. All rights reserved.