Class 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.
    • Constructor Detail

      • SecurePasswordConverter

        public SecurePasswordConverter()
    • Method Detail

      • 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[]>