public class AbstractRequestingAuthenticationDetailsProvider extends Object implements BasicAuthenticationDetailsProvider
Base class for authentication details providers that make remote requests.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractRequestingAuthenticationDetailsProvider.Builder<B extends AbstractRequestingAuthenticationDetailsProvider.Builder<B>>
Base class for builders.
|
protected static class |
AbstractRequestingAuthenticationDetailsProvider.CachingSessionKeySupplier
Helper class to cache the private key as bytes so we don’t have to parse it every time.
|
| Modifier and Type | Field and Description |
|---|---|
protected FederationClient |
federationClient |
protected AbstractRequestingAuthenticationDetailsProvider.CachingSessionKeySupplier |
sessionKeySupplier |
| Constructor and Description |
|---|
AbstractRequestingAuthenticationDetailsProvider(FederationClient federationClient,
SessionKeySupplier sessionKeySupplier) |
| Modifier and Type | Method and Description |
|---|---|
String |
getKeyId()
Returns the keyId used to sign requests.
|
String |
getPassPhrase()
Deprecated.
|
char[] |
getPassphraseCharacters()
Returns the optional pass phrase for the (encrypted) private key, as a character array.
|
InputStream |
getPrivateKey()
Returns a new InputStream to the private key.
|
protected final FederationClient federationClient
protected final AbstractRequestingAuthenticationDetailsProvider.CachingSessionKeySupplier sessionKeySupplier
public AbstractRequestingAuthenticationDetailsProvider(FederationClient federationClient, SessionKeySupplier sessionKeySupplier)
public String getKeyId()
BasicAuthenticationDetailsProviderReturns the keyId used to sign requests.
getKeyId in interface BasicAuthenticationDetailsProviderpublic InputStream getPrivateKey()
BasicAuthenticationDetailsProviderReturns a new InputStream to the private key. This stream should be closed by the caller, implementations should return new streams each time.
getPrivateKey in interface BasicAuthenticationDetailsProvider@Deprecated public String getPassPhrase()
BasicAuthenticationDetailsProviderReturns the optional pass phrase for the (encrypted) private key.
getPassPhrase in interface BasicAuthenticationDetailsProviderpublic char[] getPassphraseCharacters()
Returns the optional pass phrase for the (encrypted) private key, as a character array.
getPassphraseCharacters in interface BasicAuthenticationDetailsProviderCopyright © 2016–2024. All rights reserved.