Package tigase.auth.credentials.entries

# Class PlainCredentialsEntry

java.lang.Object
tigase.auth.credentials.entries.PlainCredentialsEntry

All Implemented Interfaces:
  `Credentials.Entry`

public class PlainCredentialsEntry extends Object implements Credentials.Entry

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `PlainCredentialsEntry.Decoder`
  `static class`
  `PlainCredentialsEntry.Encoder`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PlainCredentialsEntry(String password)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getMechanism()`
  Name of the encryption mechanism used to encode stored credentials.
  `String`
  `getPassword()`
  `boolean`
  `verifyPlainPassword(String plain)`
  Check if plaintext password will match stored credential

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

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

- ## Constructor Details

  - ### PlainCredentialsEntry

    public PlainCredentialsEntry(String password)

- ## Method Details

  - ### getMechanism

    public String getMechanism()
    Description copied from interface: `Credentials.Entry`
    Name of the encryption mechanism used to encode stored credentials. Note: Value returned by this method may be equal to SASL mechanism name used to encode this value, but doesn't have to be only one of SASL mechanism name, ie. for passwords encoded for PLAIN mechanism not stored in plain format in the repository.
    Specified by:
      `getMechanism` in interface `Credentials.Entry`

  - ### getPassword

    public String getPassword()

  - ### verifyPlainPassword

    public boolean verifyPlainPassword(String plain)
    Description copied from interface: `Credentials.Entry`
    Check if plaintext password will match stored credential
    Specified by:
      `verifyPlainPassword` in interface `Credentials.Entry`