Class CredentialPluginLoader
- java.lang.Object
-
- org.mariadb.jdbc.plugin.credential.CredentialPluginLoader
-
public final class CredentialPluginLoader extends java.lang.Object
Provider to handle plugin authentication. This can allow library users to override our default Authentication provider.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.ServiceLoader<CredentialPlugin>
loader
-
Constructor Summary
Constructors Constructor Description CredentialPluginLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CredentialPlugin
get(java.lang.String type)
Get current Identity plugin according to option `identityType`.
-
-
-
Field Detail
-
loader
private static final java.util.ServiceLoader<CredentialPlugin> loader
-
-
Method Detail
-
get
public static CredentialPlugin get(java.lang.String type) throws java.sql.SQLException
Get current Identity plugin according to option `identityType`.- Parameters:
type
- identity plugin type- Returns:
- identity plugin
- Throws:
java.sql.SQLException
- if no identity plugin found with this type is in classpath
-
-