All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.kaizen4j.shiro.csrf.CsrfToken Maven / Gradle / Ivy

The newest version!
package com.github.kaizen4j.shiro.csrf;

import java.io.Serializable;

/**
 * Provides the information about an expected CSRF token.
 *
 * @author liuguowen
 */
public interface CsrfToken extends Serializable {

    /**
     * Gets the HTTP header that the CSRF is populated on the response and can be placed
     * on requests instead of the parameter. Cannot be null.
     *
     * @return the HTTP header that the CSRF is populated on the response and can be
     *         placed on requests instead of the parameter
     */
    String getHeaderName();

    /**
     * Gets the HTTP parameter name that should contain the token. Cannot be null.
     *
     * @return the HTTP parameter name that should contain the token.
     */
    String getParameterName();

    /**
     * Gets the token value. Cannot be null.
     *
     * @return the token value
     */
    String getToken();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy