All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aerospike.vector.client.auth.PasswordCredentials Maven / Gradle / Ivy

Go to download

This project includes the Java client for Aerospike Vector Search for high-performance data interactions.

The newest version!
package com.aerospike.vector.client.auth;

/**
 * Username and password based credentials.
 *
 * @param username the username for the credentials; must not be null.
 * @param password the password for the credentials; must not be null.
 */
public record PasswordCredentials(String username, String password) implements Credentials {
    /**
     * Constructs a new PasswordCredentials with specified username and password.
     *
     * @param username the username for the credentials.
     * @param password the password for the credentials.
     */
    public PasswordCredentials {}

    /**
     * Retrieves the username.
     *
     * @return the username as a String.
     */
    @Override
    public String username() {
        return username;
    }

    /**
     * Retrieves the password.
     *
     * @return the password as a String.
     */
    @Override
    public String password() {
        return password;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy