Package tigase.auth.credentials.entries

# Class MD5UsernamePasswordCredentialsEntry.Encoder

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

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

Enclosing class:
  MD5UsernamePasswordCredentialsEntry

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

- ## 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, MD5UsernamePasswordCredentialsEntry 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, MD5UsernamePasswordCredentialsEntry entry)
    Description copied from interface: `Credentials.Encoder`
    Encodes entry to store in database.
    Specified by:
      `encode` in interface `Credentials.Encoder<MD5UsernamePasswordCredentialsEntry>`
    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<MD5UsernamePasswordCredentialsEntry>`
    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<MD5UsernamePasswordCredentialsEntry>`
    Returns:
      name of the encryption mechanism for which encoder works