| Modifier and Type | Class and Description |
|---|---|
| protected abstract static class | AbstractRequestingAuthenticationDetailsProvider.
builder class B extends AbstractRequestingAuthenticationDetailsProvider.Base class for builders. |
| protected static class | AbstractRequestingAuthenticationDetailsProvider.
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 final FederationClient | |
| protected final AbstractRequestingAuthenticationDetailsProvider. |
| Access | Constructor and Description |
|---|---|
| public | AbstractRequestingAuthenticationDetailsProvider(FederationClient federationClient, SessionKeySupplier sessionKeySupplier)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | getKeyId()
Implements com. Returns the keyId used to sign requests. |
| public String | getPassPhrase()
Implements com.
Deprecated
Returns the optional pass phrase for the (encrypted) private key. |
| public char[] | Returns: The pass phrase as character array, or null if not applicableImplements com. Returns the optional pass phrase for the (encrypted) private key, as a character array. |
| public InputStream | getPrivateKey()
Implements com. Returns a new InputStream to the private key. |
| federationClient | back to summary |
|---|---|
| protected final FederationClient federationClient | |
| sessionKeySupplier | back to summary |
|---|---|
| protected final AbstractRequestingAuthenticationDetailsProvider. | |
| AbstractRequestingAuthenticationDetailsProvider | back to summary |
|---|---|
| public AbstractRequestingAuthenticationDetailsProvider(FederationClient federationClient, SessionKeySupplier sessionKeySupplier) | |
| getKeyId | back to summary |
|---|---|
| public String getKeyId() Implements com. Doc from com. Returns the keyId used to sign requests. | |
| getPassPhrase | back to summary |
|---|---|
| public String getPassPhrase() Implements com. Doc from com. Deprecated
Returns the optional pass phrase for the (encrypted) private key.
| |
| getPassphraseCharacters | back to summary |
|---|---|
| public char[] getPassphraseCharacters() Implements com. Returns the optional pass phrase for the (encrypted) private key, as a character array.
| |
| getPrivateKey | back to summary |
|---|---|
| public InputStream getPrivateKey() Implements com. Doc from com. Returns a new InputStream to the private key. This stream should be closed by the caller, implementations should return new streams each time.
| |
| Modifier and Type | Field and Description |
|---|---|
| protected List | |
| protected FederationClient | |
| protected ClientConfigurator | |
| protected Set | |
| protected SessionKeySupplier |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public B | Returns: this builderthe additional client configurator additionalClientConfigurator)Add an additional client configurator to be run after the primary configurator. |
| public B | federationClientConfigurator(ClientConfigurator clientConfigurator)
Configures the ClientConfigurator to set on the REST client used by the federation client, if any. |
| public B | intermediateCertificateSuppliers(Set<X509CertificateSupplier> intermediateCertificateSuppliers)
Configures the set of intermediate certificate suppliers to use, if any. |
| public B | sessionKeySupplier(SessionKeySupplier sessionKeySupplier)
Configures the custom SessionKeySupplier to use. |
| additionalFederationClientConfigurators | back to summary |
|---|---|
| protected List<ClientConfigurator> additionalFederationClientConfigurators | |
| federationClient | back to summary |
|---|---|
| protected FederationClient federationClient | |
| federationClientConfigurator | back to summary |
|---|---|
| protected ClientConfigurator federationClientConfigurator | |
| intermediateCertificateSuppliers | back to summary |
|---|---|
| protected Set<X509CertificateSupplier> intermediateCertificateSuppliers | |
| sessionKeySupplier | back to summary |
|---|---|
| protected SessionKeySupplier sessionKeySupplier | |
| Builder | back to summary |
|---|---|
| protected Builder() | |
| additionalFederationClientConfigurator | back to summary |
|---|---|
| public B additionalFederationClientConfigurator(ClientConfigurator additionalClientConfigurator) Add an additional client configurator to be run after the primary configurator.
| |
| federationClientConfigurator | back to summary |
|---|---|
| public B federationClientConfigurator(ClientConfigurator clientConfigurator) Configures the ClientConfigurator to set on the REST client used by the federation client, if any. | |
| intermediateCertificateSuppliers | back to summary |
|---|---|
| public B intermediateCertificateSuppliers(Set<X509CertificateSupplier> intermediateCertificateSuppliers) Configures the set of intermediate certificate suppliers to use, if any. | |
| sessionKeySupplier | back to summary |
|---|---|
| public B sessionKeySupplier(SessionKeySupplier sessionKeySupplier) Configures the custom SessionKeySupplier to use. | |
All methods in this class that are called outside of this class should be synchronized.
| Modifier and Type | Field and Description |
|---|---|
| private final SessionKeySupplier | |
| private RSAPrivateKey | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public KeyPair | getKeyPair()
Implements com. Returns the current RSA key pair. |
| protected synchronized byte[] | |
| public synchronized void | refreshKeys()
Implements com. If the auth service-issued security token expires, the federation client will try to re-generate a new set of keys by calling this method. |
| private void |
| delegate | back to summary |
|---|---|
| private final SessionKeySupplier delegate | |
| lastPrivateKey | back to summary |
|---|---|
| private RSAPrivateKey lastPrivateKey | |
| privateKeyBytes | back to summary |
|---|---|
| private byte[] privateKeyBytes | |
| CachingSessionKeySupplier | back to summary |
|---|---|
| protected CachingSessionKeySupplier(final SessionKeySupplier delegate) | |
| getKeyPair | back to summary |
|---|---|
| public KeyPair getKeyPair() Implements com. Doc from com. Returns the current RSA key pair. | |
| getPrivateKeyBytes | back to summary |
|---|---|
| protected synchronized byte[] getPrivateKeyBytes() | |
| refreshKeys | back to summary |
|---|---|
| public synchronized void refreshKeys() Implements com. Doc from com. If the auth service-issued security token expires, the federation client will try to re-generate a new set of keys by calling this method. The implementer should create a new pair of keys for security reasons. Refreshing keys should not be a long-running blocking call. You can refresh keys in an async thread and return from this method immediately. When the async process is done refreshing the keys, the client code will automatically pick up the latest set of keys and update the security token accordingly
| |
| setPrivateKeyBytes | back to summary |
|---|---|
| private void setPrivateKeyBytes(RSAPrivateKey privateKey) | |