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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.String` | `encode​(BareJID user, java.lang.String password)` | Encrypt plaintext password for user
    `java.lang.String` | `getName()` | Name of mechanism for which encoder works

- - ### Method Detail

    - #### encode

          java.lang.String encode​(BareJID user,
                                  java.lang.String password)

      Encrypt plaintext password for user
      Parameters:
        `user` - for which encrypt
        `password` - to encode
      Returns:
        encrypted plaintext password for user

    - #### getName

          java.lang.String getName()

      Name of mechanism for which encoder works
      Returns:
        name of mechanism for which encoder works