Remove Deprecated Usage
Issue gh-12086
This commit is contained in:
+5
-5
@@ -171,14 +171,14 @@ public final class CookieCsrfTokenRepository implements CsrfTokenRepository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Factory method to conveniently create an instance that has
|
* Factory method to conveniently create an instance that creates cookies where
|
||||||
* {@link #setCookieHttpOnly(boolean)} set to false.
|
* {@link Cookie#isHttpOnly()} is set to false.
|
||||||
* @return an instance of CookieCsrfTokenRepository with
|
* @return an instance of CookieCsrfTokenRepository that creates cookies where
|
||||||
* {@link #setCookieHttpOnly(boolean)} set to false
|
* {@link Cookie#isHttpOnly()} is set to false.
|
||||||
*/
|
*/
|
||||||
public static CookieCsrfTokenRepository withHttpOnlyFalse() {
|
public static CookieCsrfTokenRepository withHttpOnlyFalse() {
|
||||||
CookieCsrfTokenRepository result = new CookieCsrfTokenRepository();
|
CookieCsrfTokenRepository result = new CookieCsrfTokenRepository();
|
||||||
result.setCookieHttpOnly(false);
|
result.setCookieCustomizer((cookie) -> cookie.httpOnly(false));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -77,14 +77,14 @@ public final class CookieServerCsrfTokenRepository implements ServerCsrfTokenRep
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Factory method to conveniently create an instance that has
|
* Factory method to conveniently create an instance that has creates cookies with
|
||||||
* {@link #setCookieHttpOnly(boolean)} set to false.
|
* {@link ResponseCookie#isHttpOnly} set to false.
|
||||||
* @return an instance of CookieCsrfTokenRepository with
|
* @return an instance of CookieCsrfTokenRepository that creates cookies with
|
||||||
* {@link #setCookieHttpOnly(boolean)} set to false
|
* {@link ResponseCookie#isHttpOnly} set to false
|
||||||
*/
|
*/
|
||||||
public static CookieServerCsrfTokenRepository withHttpOnlyFalse() {
|
public static CookieServerCsrfTokenRepository withHttpOnlyFalse() {
|
||||||
CookieServerCsrfTokenRepository result = new CookieServerCsrfTokenRepository();
|
CookieServerCsrfTokenRepository result = new CookieServerCsrfTokenRepository();
|
||||||
result.setCookieHttpOnly(false);
|
result.setCookieCustomizer((cookie) -> cookie.httpOnly(false));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user