Class CsrfService

java.lang.Object
best.skn.security.services.csrf.CsrfService
All Implemented Interfaces:
CsrfInterface

@Service public class CsrfService extends Object implements CsrfInterface
CSRF Service Class
Since:
2024-03-16
Version:
1.1.1
Author:
SKN
Use Case:
Spring Boot Reactive
Dedicated To:
Logno, Atoshi and My Parents
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<org.springframework.security.web.server.csrf.CsrfToken>
    csrfRouteGetRequest(org.springframework.security.web.server.csrf.CsrfToken token)
    Method to get the CSRF token as response of GET request

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CsrfService

      public CsrfService()
  • Method Details

    • csrfRouteGetRequest

      public reactor.core.publisher.Mono<org.springframework.security.web.server.csrf.CsrfToken> csrfRouteGetRequest(org.springframework.security.web.server.csrf.CsrfToken token) throws Exception
      Description copied from interface: CsrfInterface
      Method to get the CSRF token as response of GET request
      Specified by:
      csrfRouteGetRequest in interface CsrfInterface
      Parameters:
      token - a CsrfToken as parameter
      Returns:
      a Mono of CsrfToken as a response
      Throws:
      Exception - an exception if CsrfToken GET request fails