Package com.oracle.bmc.auth
Interface SessionKeySupplier
-
- All Known Implementing Classes:
AbstractRequestingAuthenticationDetailsProvider.CachingSessionKeySupplier,FileBasedKeySupplier,FixedContentKeySupplier
public interface SessionKeySupplierA session key supplier is responsible for providing public/private key pairs that will be used to both fetch federated service tokens and to sign individual requests to OCI.The returned keys should not change unless there as been a call to
refreshKeys().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description KeyPairgetKeyPair()Returns the current RSA key pair.RSAPrivateKeygetPrivateKey()Deprecated.use getKeyPair insteadRSAPublicKeygetPublicKey()Deprecated.use getKeyPair insteadvoidrefreshKeys()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
-
getKeyPair
KeyPair getKeyPair()
Returns the current RSA key pair.- Returns:
- The RSA key pair.
-
getPublicKey
@Deprecated RSAPublicKey getPublicKey()
Deprecated.use getKeyPair insteadGets the public key- Returns:
- the public key, not null
-
getPrivateKey
@Deprecated RSAPrivateKey getPrivateKey()
Deprecated.use getKeyPair insteadGets the private key- Returns:
- the private key, not null
-
refreshKeys
void 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
-
-