com.aerospike.vector.client.auth.PasswordCredentials Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avs-client-java Show documentation
Show all versions of avs-client-java Show documentation
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;
}
}