Package tigase.auth.credentials

# Interface Credentials.Encoder<E extends Credentials.Entry>

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

Enclosing interface:
  Credentials

public static interface Credentials.Encoder<E extends Credentials.Entry>
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, E entry)`
  Encodes entry to store in database.
  `String`
  `encode(BareJID user, String password)`
  Encodes entry to store in database.
  `String`
  `getName()`
  Name of the encryption mechanism for which encoder works

- ## Method Details

  - ### encode

    String encode(BareJID user, String password)
    Encodes entry to store in database.
    Parameters:
      `user` - for which encode
      `password` - plaintext password to encode
    Returns:
      encoded authentication data.

  - ### encode

    String encode(BareJID user, E entry)
    Encodes entry to store in database.
    Parameters:
      `user` - for which encode
      `entry` - to encode
    Returns:
      encoded authentication data.

  - ### getName

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