public class

Secret

extends Object
implements Serializable
java.lang.Object
   ↳ org.apache.myfaces.tobago.webapp.Secret

Summary

Public Methods
static boolean check(FacesContext facesContext)
Checks that the request contains a parameter KEY which is equals to a secret value in the session.
static void create(HttpSession session)
Create a secret attribute in the session.
static void encode(FacesContext facesContext, TobagoResponseWriter writer)
Encode a hidden field with the secret value from the session.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static boolean check (FacesContext facesContext)

Checks that the request contains a parameter KEY which is equals to a secret value in the session.

public static void create (HttpSession session)

Create a secret attribute in the session. Should usually be called in a javax.servlet.http.HttpSessionListener.

public static void encode (FacesContext facesContext, TobagoResponseWriter writer)

Encode a hidden field with the secret value from the session.

Throws
IOException