Interface Credentials

All Known Implementing Classes:
AuthRepository.DefaultCredentials, AuthRepository.SingleCredential

public interface Credentials
Interface implemented by classes handling user login credentials. In implementations of this interface multiple credentials for single account may be stored but for single credentialId, ie. different credentials for different authentication mechanisms.
  • Field Details

  • Method Details

    • canLogin

      boolean canLogin()
      Checks if account can perform logging-in
    • getEntryForMechanism

      Credentials.Entry getEntryForMechanism(String mechanism)
      Find a credential for specified encryption mechanism
      Returns:
      instance of an entry if available or null
    • getFirst

      Credentials.Entry getFirst()
      Returns first available instance of credentials entry
      Returns:
      first available instance of credentials entry
    • getUser

      BareJID getUser()
      Returns bare jid of an account
      Returns:
      bare jid of an account
    • isAccountDisabled

      boolean isAccountDisabled()
      Checks if account is disabled
    • getAccountStatus

      AuthRepository.AccountStatus getAccountStatus()
      Returns:
      account status of the account