Package net.shibboleth.idp.ui.csrf.impl
Class SimpleCSRFToken
java.lang.Object
net.shibboleth.idp.ui.csrf.impl.SimpleCSRFToken
- All Implemented Interfaces:
Serializable
,CSRFToken
A default, immutable, implementation of a
CSRFToken
.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe name to be used in HTML form input elements to store the CSRF token value.getToken()
The anti-CSRF token value.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial UID.- See Also:
-
token
The anti-csrf token value. -
parameterName
The HTTP parameter that holds the token value.
-
-
Constructor Details
-
SimpleCSRFToken
Constructor.- Parameters:
csrfToken
- the anti-csrf token valueparamName
- the HTTP parameter name that holds the anti-csrf token.
-
-
Method Details
-
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:
getParameterName
in interfaceCSRFToken
- Returns:
- the HTTP parameter name that contains the value of the token.
-
getToken
The anti-CSRF token value. The token should be cryptographically strong.
-