Top Description Fields Constructors Methods
com.oracle.bmc.auth.internal

public Class FixedContentKeySupplier

extends Object
implements SessionKeySupplier
Class Inheritance
All Implemented Interfaces
com.oracle.bmc.auth.SessionKeySupplier
Imports
com.oracle.bmc.auth.SessionKeySupplier, com.oracle.bmc.http.signing.internal.PEMFileRSAPrivateKeySupplier, java.io.ByteArrayInputStream, .IOException, java.security.InvalidKeyException, .KeyFactory, .KeyPair, .NoSuchAlgorithmException, java.security.interfaces.RSAPrivateKey, .RSAPublicKey, java.security.spec.InvalidKeySpecException, .RSAPrivateCrtKeySpec, .RSAPublicKeySpec

This is a SessionKeySupplier which fakes the ability to refresh its contained key. It is initialised once with fixed values of private key and (optional) passphrase; that key is always returned.

Field Summary

Modifier and TypeField and Description
private final KeyPair

Constructor Summary

AccessConstructor and Description
public
FixedContentKeySupplier(String privateKeyContents, char[] passphrase)

Method Summary

Modifier and TypeMethod and Description
public KeyPair
getKeyPair()

Implements com.oracle.bmc.auth.SessionKeySupplier.getKeyPair.

Returns the current RSA key pair.

public void
refreshKeys()

Implements com.oracle.bmc.auth.SessionKeySupplier.refreshKeys.

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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyPairback to summary
private final KeyPair keyPair

Constructor Detail

FixedContentKeySupplierback to summary
public FixedContentKeySupplier(String privateKeyContents, char[] passphrase)

Method Detail

getKeyPairback to summary
public KeyPair getKeyPair()

Implements com.oracle.bmc.auth.SessionKeySupplier.getKeyPair.

Doc from com.oracle.bmc.auth.SessionKeySupplier.getKeyPair.

Returns the current RSA key pair.

Returns:KeyPair

The RSA key pair.

Annotations
@Override
refreshKeysback to summary
public void refreshKeys()

Implements com.oracle.bmc.auth.SessionKeySupplier.refreshKeys.

Doc from com.oracle.bmc.auth.SessionKeySupplier.refreshKeys.

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

Annotations
@Override