Package tigase.auth.credentials

# Interface Credentials.Encoder

All Known Implementing Classes:
  `MD5PasswordCredentialsEntry.Encoder`, `MD5UserIdPasswordCredentialsEntry.Encoder`, `MD5UsernamePasswordCredentialsEntry.Encoder`, `PlainCredentialsEntry.Encoder`, `ScramCredentialsEntry.Encoder`, `ScramSha1CredentialsEntry.Encoder`, `ScramSha256CredentialsEntry.Encoder`, `ScramSha512CredentialsEntry.Encoder`

Enclosing interface:
  Credentials

public static interface Credentials.Encoder
Interface implemented by credentials encoder converting them from plaintext value to encoded form stored in the database.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `encode(BareJID user, String password)`
  Encrypt plaintext password for user
  `String`
  `getName()`
  Name of mechanism for which encoder works

- ## Method Details

  - ### encode

    String encode(BareJID user, String password)
    Encrypt plaintext password for user
    Parameters:
      `user` - for which encrypt
      `password` - to encode
    Returns:
      encrypted plaintext password for user

  - ### getName

    String getName()
    Name of mechanism for which encoder works
    Returns:
      name of mechanism for which encoder works