public static class AuthRepository.SingleCredential extends Object implements Credentials
Credentials.Decoder, Credentials.Encoder, Credentials.Entry, Credentials.RawEntryDEFAULT_CREDENTIAL_ID, DEFAULT_USERNAME| Constructor and Description |
|---|
SingleCredential(BareJID user,
AuthRepository.AccountStatus accountStatus,
Credentials.Entry entry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLogin()
Checks if account can perform logging-in
|
Credentials.Entry |
getEntryForMechanism(String mechanism)
Find a credential for specified mechanism
|
Credentials.Entry |
getFirst()
Returns first available instance of credentials entry
|
BareJID |
getUser()
Returns bare jid of an account
|
boolean |
isAccountDisabled()
Checks if account is disabled
|
String |
toString() |
public SingleCredential(BareJID user, AuthRepository.AccountStatus accountStatus, Credentials.Entry entry)
public Credentials.Entry getEntryForMechanism(String mechanism)
CredentialsgetEntryForMechanism in interface Credentialspublic Credentials.Entry getFirst()
CredentialsgetFirst in interface Credentialspublic boolean canLogin()
CredentialscanLogin in interface Credentialspublic BareJID getUser()
CredentialsgetUser in interface Credentialspublic boolean isAccountDisabled()
CredentialsisAccountDisabled in interface CredentialsCopyright © 2004–2021 "Tigase, Inc.". All rights reserved.