Package net.shibboleth.idp.ui.csrf.impl
Class SimpleCSRFToken
- java.lang.Object
-
- net.shibboleth.idp.ui.csrf.impl.SimpleCSRFToken
-
- All Implemented Interfaces:
Serializable,CSRFToken
@Immutable public class SimpleCSRFToken extends Object implements CSRFToken
A default, immutable, implementation of aCSRFToken.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private StringparameterNameThe HTTP parameter that holds the token value.private static longserialVersionUIDSerial UID.private StringtokenThe anti-csrf token value.
-
Constructor Summary
Constructors Constructor Description SimpleCSRFToken(String csrfToken, String paramName)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetParameterName()The name to be used in HTML form input elements to store the CSRF token value.StringgetToken()The anti-CSRF token value.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial UID.- See Also:
- Constant Field Values
-
-
Method Detail
-
getParameterName
public String getParameterName()
The name to be used in HTML form input elements to store the CSRF token value. Expected to be present as a parameter in a HTTP request.- Specified by:
getParameterNamein interfaceCSRFToken- Returns:
- the HTTP parameter name that contains the value of the token.
-
-