|
|
|
@ -124,14 +124,6 @@ public final class CookieServerCsrfTokenRepository implements ServerCsrfTokenRep |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @deprecated Use {@link #setCookieCustomizer(Consumer)} instead. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Deprecated(since = "6.1") |
|
|
|
|
|
|
|
public void setCookieHttpOnly(boolean cookieHttpOnly) { |
|
|
|
|
|
|
|
this.cookieHttpOnly = cookieHttpOnly; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Sets the cookie name |
|
|
|
* Sets the cookie name |
|
|
|
* @param cookieName The cookie name |
|
|
|
* @param cookieName The cookie name |
|
|
|
@ -167,33 +159,6 @@ public final class CookieServerCsrfTokenRepository implements ServerCsrfTokenRep |
|
|
|
this.cookiePath = cookiePath; |
|
|
|
this.cookiePath = cookiePath; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @deprecated Use {@link #setCookieCustomizer(Consumer)} instead. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Deprecated(since = "6.1") |
|
|
|
|
|
|
|
public void setCookieDomain(String cookieDomain) { |
|
|
|
|
|
|
|
this.cookieDomain = cookieDomain; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @since 5.5 |
|
|
|
|
|
|
|
* @deprecated Use {@link #setCookieCustomizer(Consumer)} instead. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Deprecated(since = "6.1") |
|
|
|
|
|
|
|
public void setSecure(boolean secure) { |
|
|
|
|
|
|
|
this.secure = secure; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @since 5.8 |
|
|
|
|
|
|
|
* @deprecated Use {@link #setCookieCustomizer(Consumer)} instead. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Deprecated(since = "6.1") |
|
|
|
|
|
|
|
public void setCookieMaxAge(int cookieMaxAge) { |
|
|
|
|
|
|
|
Assert.isTrue(cookieMaxAge != 0, "cookieMaxAge cannot be zero"); |
|
|
|
|
|
|
|
this.cookieMaxAge = cookieMaxAge; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private CsrfToken createCsrfToken() { |
|
|
|
private CsrfToken createCsrfToken() { |
|
|
|
return createCsrfToken(createNewToken()); |
|
|
|
return createCsrfToken(createNewToken()); |
|
|
|
} |
|
|
|
} |
|
|
|
|