public class Credentials extends Object
A Conjur identity consists of a username and a password. The password may either be a user's password or the api key of a user or host. These cases are treated identically by the Conjur authentication service.
Credentials supports hashCode and equals and can be used as keys, for example for caching.
| Constructor and Description |
|---|
Credentials(String username,
String password) |
Credentials(String username,
String password,
String authnUrl) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static Credentials |
fromSystemProperties()
Creates a Credentials instance from the system properties
|
String |
getAuthnUrl() |
String |
getPassword() |
String |
getUsername() |
int |
hashCode() |
String |
toString() |
public Credentials(String username, String password)
username - the username/login for this Conjur identitypassword - the password or api key for this Conjur identitypublic static Credentials fromSystemProperties()
public String getUsername()
public String getPassword()
public String getAuthnUrl()
Copyright © 2025. All rights reserved.