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

public Class FileBasedKeySupplier

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.File, .FileInputStream, .FileNotFoundException, .IOException, .InputStream, java.nio.file.Files, .Path, java.security.InvalidKeyException, .KeyFactory, .KeyPair, .NoSuchAlgorithmException, java.security.interfaces.RSAPrivateKey, .RSAPublicKey, java.security.spec.InvalidKeySpecException, .RSAPrivateCrtKeySpec, .RSAPublicKeySpec

Field Summary

Modifier and TypeField and Description
private volatile KeyPair
private final Path
private final String

Constructor Summary

AccessConstructor and Description
public
FileBasedKeySupplier(String privateKeyPath, String passphrasePath)

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 volatile KeyPair keyPair
passphrasePathback to summary
private final Path passphrasePath
privateKeyPathback to summary
private final String privateKeyPath

Constructor Detail

FileBasedKeySupplierback to summary
public FileBasedKeySupplier(String privateKeyPath, String passphrasePath)

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