class PostgresIamAuthConnectionProvider extends JdbcConnectionProvider with Logging
A connection provider that enables IAM authentication for PostgreSQL databases.
- Alphabetic
- By Inheritance
- PostgresIamAuthConnectionProvider
- Logging
- JdbcConnectionProvider
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PostgresIamAuthConnectionProvider()
- new PostgresIamAuthConnectionProvider(tokenGenerator: AuthTokenGenerator)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canHandle(driver: Driver, options: Map[String, String]): Boolean
Determines if this provider can handle the given driver and options.
Determines if this provider can handle the given driver and options.
- driver
The JDBC driver to check
- options
Connection options map
- returns
true if the driver is a PostgreSQL driver and IAM auth is being used.
- Definition Classes
- PostgresIamAuthConnectionProvider → JdbcConnectionProvider
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getConnection(driver: Driver, options: Map[String, String]): Connection
Creates a database connection using IAM authentication.
Creates a database connection using IAM authentication.
- driver
The JDBC driver to use for the connection
- options
A map containing connection options. Required keys:
- url: The JDBC URL for the database
- user: The username for authentication
- region: AWS region (required for IAM authentication)
- returns
A Connection object to the database
- Definition Classes
- PostgresIamAuthConnectionProvider → JdbcConnectionProvider
- Exceptions thrown
IllegalArgumentException
if required parameters are missing or invalidRuntimeException
if connection creation fails
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
def
initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
def
log: Logger
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logName: String
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
modifiesSecurityContext(driver: Driver, options: Map[String, String]): Boolean
Indicates whether this provider modifies the security context.
Indicates whether this provider modifies the security context.
- driver
The JDBC driver
- options
Connection options map
- returns
false as this provider does not modify the security context
- Definition Classes
- PostgresIamAuthConnectionProvider → JdbcConnectionProvider
-
val
name: String
The name of this connection provider.
The name of this connection provider.
- returns
The string identifier for this connection provider
- Definition Classes
- PostgresIamAuthConnectionProvider → JdbcConnectionProvider
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()