Package com.oracle.bmc.auth.internal
Class FileBasedKeySupplier
- java.lang.Object
- 
- com.oracle.bmc.auth.internal.FileBasedKeySupplier
 
- 
- All Implemented Interfaces:
- SessionKeySupplier
 
 public class FileBasedKeySupplier extends Object implements SessionKeySupplier 
- 
- 
Constructor SummaryConstructors Constructor Description FileBasedKeySupplier(String privateKeyPath, String passphrasePath)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyPairgetKeyPair()Returns the current RSA key pair.voidrefreshKeys()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.
 
- 
- 
- 
Method Detail- 
getKeyPairpublic KeyPair getKeyPair() Description copied from interface:SessionKeySupplierReturns the current RSA key pair.- Specified by:
- getKeyPairin interface- SessionKeySupplier
- Returns:
- The RSA key pair.
 
 - 
refreshKeyspublic void refreshKeys() Description copied from interface:SessionKeySupplierIf 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 - Specified by:
- refreshKeysin interface- SessionKeySupplier
 
 
- 
 
-