public class HttpSignatureAuthSchemeProviderLookup extends Object implements org.apache.http.config.Lookup<org.apache.http.auth.AuthSchemeProvider>
Lookup implementation that provides a
default mapping to an HTTP signatures
AuthSchemeProvider.| Constructor and Description |
|---|
HttpSignatureAuthSchemeProviderLookup(HttpSignatureAuthSchemeProvider authSchemeProvider)
Create a new instance of the lookup with the passed provider.
|
HttpSignatureAuthSchemeProviderLookup(KeyPair keyPair,
boolean useNativeCodeToSign)
Create a new instance of the lookup with a new provider setup with the
passed key.
|
public HttpSignatureAuthSchemeProviderLookup(HttpSignatureAuthSchemeProvider authSchemeProvider)
authSchemeProvider - provider to use to back lookup callspublic HttpSignatureAuthSchemeProviderLookup(KeyPair keyPair, boolean useNativeCodeToSign)
keyPair - Public/private keypair object used to sign HTTP requests.useNativeCodeToSign - true to enable native code acceleration of cryptographic singingpublic org.apache.http.auth.AuthSchemeProvider lookup(String name)
lookup in interface org.apache.http.config.Lookup<org.apache.http.auth.AuthSchemeProvider>Copyright © 2015–2016 Joyent. All rights reserved.