public class Credentials extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Credentials.CredentialsBuilder
Represents a builder for creating
Credentials objects. |
Modifier | Constructor and Description |
---|---|
protected |
Credentials(@NotNull String hostname,
@NotNull String username,
@NotNull String poolName) |
Modifier and Type | Method and Description |
---|---|
static @NotNull Credentials.CredentialsBuilder |
builder()
Creates a new builder for Credentials.
|
@NotNull String |
getHostname()
Gets the hostname for connecting to a data source.
|
@Nullable String |
getPassword()
Gets the password for connecting to a data source.
|
@NotNull String |
getPoolName()
Gets the name of the connection pool.
|
int |
getPort()
Gets the port for connecting to a data source.
|
@Nullable String |
getSchema()
Gets the schema for connecting to a data source.
|
@NotNull String |
getUsername()
Gets the username for connecting to a data source.
|
@NotNull public static @NotNull Credentials.CredentialsBuilder builder()
@NotNull public @NotNull String getHostname()
public int getPort()
@NotNull public @NotNull String getUsername()
@Nullable public @Nullable String getPassword()
@Nullable public @Nullable String getSchema()
@NotNull public @NotNull String getPoolName()
Copyright © 2021. All rights reserved.