Klasse Ltpa2AuthConverter

java.lang.Object
de.sephirothj.spring.security.ltpa2.reactive.Ltpa2AuthConverter
Alle implementierten Schnittstellen:
org.springframework.beans.factory.InitializingBean, org.springframework.security.web.server.authentication.ServerAuthenticationConverter

public class Ltpa2AuthConverter extends Object implements org.springframework.security.web.server.authentication.ServerAuthenticationConverter, org.springframework.beans.factory.InitializingBean
Strategy for converting a ServerWebExchange to an Authentication based on LTPA2 tokens. The final authentication will be done by a Ltpa2AuthManager. The token is expected to be given in the header headerName with an optional prefix. If the header is empty or not found the token will be searched in the cookie named cookieName.
Autor:
Sephiroth
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
     
    reactor.core.publisher.Mono<org.springframework.security.core.Authentication>
    convert(org.springframework.web.server.ServerWebExchange exchange)
    Extracts an LTAP2 token from the defined header or cookie (as fallback), validates it and if it is, creates an Authentication instance with it

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • Ltpa2AuthConverter

      public Ltpa2AuthConverter()
  • Methodendetails

    • afterPropertiesSet

      public void afterPropertiesSet()
      Angegeben von:
      afterPropertiesSet in Schnittstelle org.springframework.beans.factory.InitializingBean
    • convert

      public reactor.core.publisher.Mono<org.springframework.security.core.Authentication> convert(org.springframework.web.server.ServerWebExchange exchange)
      Extracts an LTAP2 token from the defined header or cookie (as fallback), validates it and if it is, creates an Authentication instance with it
      Angegeben von:
      convert in Schnittstelle org.springframework.security.web.server.authentication.ServerAuthenticationConverter
      Parameter:
      exchange - The ServerWebExchange
      Gibt zurück:
      A Mono representing an Authentication with a valid Ltpa2Token as credentials or an empty Mono if the token was not found or is invalid