
com.aerospike.vector.client.auth.PasswordCredentials Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy