Package oracle.nosql.driver.iam
Class ResourcePrincipalV3Provider
java.lang.Object
oracle.nosql.driver.iam.ResourcePrincipalV3Provider
- All Implemented Interfaces:
oracle.nosql.driver.iam.AuthenticationProfileProvider,oracle.nosql.driver.iam.SecurityTokenSupplier.SecurityTokenBasedProvider,oracle.nosql.driver.Region.RegionProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ResourcePrincipalProviderBuilder. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new ResourcePrincipalProvider.voidclose()getKeyId()Returns the keyId used to sign requests.char[]Returns the optional passphrase for the (encrypted) private key, as a character array.Returns a new InputStream of the private key.Returns regionvoidprepare(NoSQLHandleConfig config) voidsetMinTokenLifetime(long lifetimeMS)
-
Method Details
-
builder
Creates a new ResourcePrincipalProvider.- Returns:
- A new builder instance.
-
prepare
- Specified by:
preparein interfaceoracle.nosql.driver.iam.SecurityTokenSupplier.SecurityTokenBasedProvider
-
close
public void close()- Specified by:
closein interfaceoracle.nosql.driver.iam.SecurityTokenSupplier.SecurityTokenBasedProvider
-
getKeyId
Returns the keyId used to sign requests.- Specified by:
getKeyIdin interfaceoracle.nosql.driver.iam.AuthenticationProfileProvider- Returns:
- The keyId.
-
getPrivateKey
Returns a new InputStream of the private key. This stream should be closed by the caller, implementations should return new streams each time.- Specified by:
getPrivateKeyin interfaceoracle.nosql.driver.iam.AuthenticationProfileProvider- Returns:
- A new InputStream.
-
getPassphraseCharacters
public char[] getPassphraseCharacters()Returns the optional passphrase for the (encrypted) private key, as a character array.- Specified by:
getPassphraseCharactersin interfaceoracle.nosql.driver.iam.AuthenticationProfileProvider- Returns:
- The passphrase as character array, or null if not applicable
-
getRegion
Returns region- Specified by:
getRegionin interfaceoracle.nosql.driver.Region.RegionProvider- Returns:
- the Region to use for NoSQLHandle
-
setMinTokenLifetime
public void setMinTokenLifetime(long lifetimeMS) - Specified by:
setMinTokenLifetimein interfaceoracle.nosql.driver.iam.SecurityTokenSupplier.SecurityTokenBasedProvider
-
getClaim
-