Class DefaultPasswordCallback

java.lang.Object
rs.baselib.security.DefaultPasswordCallback
All Implemented Interfaces:
IConfigurable, IPasswordCallback

public class DefaultPasswordCallback
extends java.lang.Object
implements IPasswordCallback, IConfigurable
Returns the password given in configuration.
Author:
ralph
  • Constructor Summary

    Constructors 
    Constructor Description
    DefaultPasswordCallback()
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    void configure​(org.apache.commons.configuration.Configuration cfg)
    Configure using the given configuration
    char[] getPassword()
    Delivers the password.
    byte[] getSalt()
    Delivers the salt for encryption.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • configure

      public void configure​(org.apache.commons.configuration.Configuration cfg) throws org.apache.commons.configuration.ConfigurationException
      Configure using the given configuration
      Specified by:
      configure in interface IConfigurable
      Parameters:
      cfg - configuration
      Throws:
      org.apache.commons.configuration.ConfigurationException - if a problem occurs
    • getPassword

      public char[] getPassword()
      Delivers the password.
      Specified by:
      getPassword in interface IPasswordCallback
      Returns:
      the password
    • getSalt

      public byte[] getSalt()
      Delivers the salt for encryption.
      Specified by:
      getSalt in interface IPasswordCallback
      Returns:
      the salt