tigase.auth.credentials

## Interface Credentials.Encoder

- All Known Implementing Classes:
    MD5PasswordCredentialsEntry.Encoder, MD5UserIdPasswordCredentialsEntry.Encoder, MD5UsernamePasswordCredentialsEntry.Encoder, PlainCredentialsEntry.Encoder, ScramCredentialsEntry.Encoder, ScramSha1CredentialsEntry.Encoder, ScramSha256CredentialsEntry.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 and Description
    --- | ---
    `String` | `encode(BareJID user, String password)` Encrypt plaintext password for user
    `String` | `getName()` Name of mechanism for which encoder works

- - ### Method Detail

    - #### getName

          String getName()

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

    - #### 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

Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.