io.quarkus.security.identity.request.UsernamePasswordAuthenticationRequest Maven / Gradle / Ivy
package io.quarkus.security.identity.request;
import io.quarkus.security.credential.PasswordCredential;
/**
* An simple authentication request that uses a username and password
*/
public class UsernamePasswordAuthenticationRequest extends BaseAuthenticationRequest implements AuthenticationRequest {
private final String username;
private final PasswordCredential password;
public UsernamePasswordAuthenticationRequest(String username, PasswordCredential password) {
this.username = username;
this.password = password;
}
public String getUsername() {
return username;
}
public PasswordCredential getPassword() {
return password;
}
}