Class SecurePasswordConverter

java.lang.Object
de.xima.fc.gui.common.converter.SecurePasswordConverter
All Implemented Interfaces:
javax.faces.convert.Converter<char[]>

public class SecurePasswordConverter extends Object implements javax.faces.convert.Converter<char[]>
JSF Converter for secure password handling. Ensures, passwords are only handled as char[], even if the basic password components handle these kind of data as (insecure) String, which leads to security issues.
  • Field Summary

    Fields inherited from interface javax.faces.convert.Converter

    DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    char[]
    getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value)
     
    getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, char[] value)
     

    Methods inherited from class Object

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

    • SecurePasswordConverter

      public SecurePasswordConverter()
  • Method Details

    • getAsString

      public String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, char[] value)
      Specified by:
      getAsString in interface javax.faces.convert.Converter<char[]>
    • getAsObject

      public char[] getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value)
      Specified by:
      getAsObject in interface javax.faces.convert.Converter<char[]>