Package tigase.auth.credentials.entries

# Class MD5UserIdPasswordCredentialsEntry.Encoder

java.lang.Object
tigase.auth.credentials.entries.MD5UserIdPasswordCredentialsEntry.Encoder

All Implemented Interfaces:
  `Credentials.Encoder<MD5UserIdPasswordCredentialsEntry>`

Enclosing class:
  MD5UserIdPasswordCredentialsEntry

@Bean(name="MD5-USERID-PASSWORD", parent=CredentialsEncoderBean.class, active=false) public static class MD5UserIdPasswordCredentialsEntry.Encoder extends Object implements Credentials.Encoder<MD5UserIdPasswordCredentialsEntry>

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Encoder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `encode(BareJID user, String password)`
  Encodes entry to store in database.
  `String`
  `encode(BareJID user, MD5UserIdPasswordCredentialsEntry entry)`
  Encodes entry to store in database.
  `String`
  `getName()`
  Name of the encryption mechanism for which encoder works

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Encoder

    public Encoder()

- ## Method Details

  - ### encode

    public String encode(BareJID user, MD5UserIdPasswordCredentialsEntry entry)
    Description copied from interface: `Credentials.Encoder`
    Encodes entry to store in database.
    Specified by:
      `encode` in interface `Credentials.Encoder<MD5UserIdPasswordCredentialsEntry>`
    Parameters:
      `user` - for which encode
      `entry` - to encode
    Returns:
      encoded authentication data.

  - ### encode

    public String encode(BareJID user, String password)
    Description copied from interface: `Credentials.Encoder`
    Encodes entry to store in database.
    Specified by:
      `encode` in interface `Credentials.Encoder<MD5UserIdPasswordCredentialsEntry>`
    Parameters:
      `user` - for which encode
      `password` - plaintext password to encode
    Returns:
      encoded authentication data.

  - ### getName

    public String getName()
    Description copied from interface: `Credentials.Encoder`
    Name of the encryption mechanism for which encoder works
    Specified by:
      `getName` in interface `Credentials.Encoder<MD5UserIdPasswordCredentialsEntry>`
    Returns:
      name of the encryption mechanism for which encoder works