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

public class ResourcePrincipalV3Provider extends Object
  • Method Details

    • builder

      Creates a new ResourcePrincipalProvider.
      Returns:
      A new builder instance.
    • prepare

      public void prepare(NoSQLHandleConfig config)
      Specified by:
      prepare in interface oracle.nosql.driver.iam.SecurityTokenSupplier.SecurityTokenBasedProvider
    • close

      public void close()
      Specified by:
      close in interface oracle.nosql.driver.iam.SecurityTokenSupplier.SecurityTokenBasedProvider
    • getKeyId

      public String getKeyId()
      Returns the keyId used to sign requests.
      Specified by:
      getKeyId in interface oracle.nosql.driver.iam.AuthenticationProfileProvider
      Returns:
      The keyId.
    • getPrivateKey

      public InputStream 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:
      getPrivateKey in interface oracle.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:
      getPassphraseCharacters in interface oracle.nosql.driver.iam.AuthenticationProfileProvider
      Returns:
      The passphrase as character array, or null if not applicable
    • getRegion

      public Region getRegion()
      Returns region
      Specified by:
      getRegion in interface oracle.nosql.driver.Region.RegionProvider
      Returns:
      the Region to use for NoSQLHandle
    • setMinTokenLifetime

      public void setMinTokenLifetime(long lifetimeMS)
      Specified by:
      setMinTokenLifetime in interface oracle.nosql.driver.iam.SecurityTokenSupplier.SecurityTokenBasedProvider
    • getClaim

      public String getClaim(String key)