Modifier and Type | Class and Description |
---|---|
static class |
AccountExternalId.Key |
Modifier and Type | Field and Description |
---|---|
protected Account.Id |
accountId |
protected boolean |
canDelete
computed value can this identity be removed from the account?
|
protected String |
emailAddress |
protected AccountExternalId.Key |
key |
protected String |
password |
static String |
SCHEME_EXTERNAL
Scheme for external auth used during authentication, e.g.
|
static String |
SCHEME_GERRIT
Scheme used for
AuthType.LDAP , AuthType.CLIENT_SSL_CERT_LDAP , AuthType.HTTP_LDAP , and AuthType.LDAP_BIND usernames. |
static String |
SCHEME_GPGKEY
Scheme used for GPG public keys.
|
static String |
SCHEME_MAILTO
Scheme used to represent only an email address.
|
static String |
SCHEME_USERNAME
Scheme for the username used to authenticate an account, e.g.
|
static String |
SCHEME_UUID
Scheme used for randomly created identities constructed by a UUID.
|
protected boolean |
trusted
computed value is this identity trusted by the site administrator?
|
Modifier | Constructor and Description |
---|---|
protected |
AccountExternalId() |
|
AccountExternalId(Account.Id who,
AccountExternalId.Key k)
Create a new binding to an external identity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDelete() |
boolean |
equals(Object o) |
Account.Id |
getAccountId()
Get local id of this account, to link with in other entities
|
String |
getEmailAddress() |
String |
getExternalId() |
AccountExternalId.Key |
getKey() |
String |
getPassword() |
String |
getSchemeRest() |
int |
hashCode() |
boolean |
isScheme(String scheme) |
boolean |
isTrusted() |
void |
setCanDelete(boolean t) |
void |
setEmailAddress(String e) |
void |
setPassword(String hashed) |
void |
setTrusted(boolean t) |
public static final String SCHEME_GERRIT
AuthType.LDAP
, AuthType.CLIENT_SSL_CERT_LDAP
, AuthType.HTTP_LDAP
, and AuthType.LDAP_BIND
usernames.
The name gerrit:
was a very poor choice.
public static final String SCHEME_UUID
public static final String SCHEME_MAILTO
public static final String SCHEME_USERNAME
public static final String SCHEME_GPGKEY
public static final String SCHEME_EXTERNAL
protected AccountExternalId.Key key
protected Account.Id accountId
protected String emailAddress
protected String password
protected boolean trusted
protected boolean canDelete
protected AccountExternalId()
public AccountExternalId(Account.Id who, AccountExternalId.Key k)
who
- the account this binds to.k
- the binding key.public AccountExternalId.Key getKey()
public Account.Id getAccountId()
public String getExternalId()
public String getEmailAddress()
public void setEmailAddress(String e)
public boolean isScheme(String scheme)
public String getSchemeRest()
public void setPassword(String hashed)
public String getPassword()
public boolean isTrusted()
public void setTrusted(boolean t)
public boolean canDelete()
public void setCanDelete(boolean t)