Package org.apache.myfaces.tobago.webapp
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Secret()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheck(String test)static voidcreate(jakarta.servlet.http.HttpSession session)Create a secret attribute in the session.static SecretgetInstance(jakarta.faces.context.FacesContext facesContext)StringgetSecret()
-
-
-
Field Detail
-
KEY
public static final String KEY
-
-
Method Detail
-
getInstance
public static Secret getInstance(jakarta.faces.context.FacesContext facesContext)
-
create
public static void create(jakarta.servlet.http.HttpSession session)
Create a secret attribute in the session. Should usually be called in aHttpSessionListener.
-
check
public boolean check(String test)
-
getSecret
public String getSecret()
-
-