Class LocalStubTokenValidator

java.lang.Object
io.fluxzero.idp.testsupport.localstub.LocalStubTokenValidator
All Implemented Interfaces:
io.fluxzero.idp.client.TokenValidator

public class LocalStubTokenValidator extends Object implements io.fluxzero.idp.client.TokenValidator
ServiceLoader token validator for tokens signed by the in-process local stub IDP.

This validator is packaged in io.fluxzero.idp:test-support. Applications should add that dependency with test scope only, which makes local token verification available on the test classpath without changing application authentication code.

  • Constructor Details

    • LocalStubTokenValidator

      public LocalStubTokenValidator()
  • Method Details

    • priority

      public int priority()
      Specified by:
      priority in interface io.fluxzero.idp.client.TokenValidator
    • supports

      public boolean supports(io.fluxzero.idp.client.TokenValidationRequest request)
      Specified by:
      supports in interface io.fluxzero.idp.client.TokenValidator
    • validate

      public io.fluxzero.idp.client.JwtClaims validate(io.fluxzero.idp.client.TokenValidationRequest request)
      Specified by:
      validate in interface io.fluxzero.idp.client.TokenValidator