Class Secret

java.lang.Object
org.apache.myfaces.tobago.webapp.Secret
All Implemented Interfaces:
Serializable

public final class Secret extends Object implements Serializable
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    check(javax.faces.context.FacesContext facesContext)
    Checks that the request contains a parameter KEY which is equals to a secret value in the session.
    static void
    create(javax.servlet.http.HttpSession session)
    Create a secret attribute in the session.
    static void
    encode(javax.faces.context.FacesContext facesContext, TobagoResponseWriter writer)
    Encode a hidden field with the secret value from the session.

    Methods inherited from class java.lang.Object

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

    • check

      public static boolean check(javax.faces.context.FacesContext facesContext)
      Checks that the request contains a parameter KEY which is equals to a secret value in the session.
    • encode

      public static void encode(javax.faces.context.FacesContext facesContext, TobagoResponseWriter writer) throws IOException
      Encode a hidden field with the secret value from the session.
      Throws:
      IOException
    • create

      public static void create(javax.servlet.http.HttpSession session)
      Create a secret attribute in the session. Should usually be called in a HttpSessionListener.