Class JwtFirstMatchingClaimExtractorJackson2

java.lang.Object
org.zalando.logbook.core.attributes.JwtFirstMatchingClaimExtractorJackson2
All Implemented Interfaces:
org.zalando.logbook.attributes.AttributeExtractor

@API(status=EXPERIMENTAL) @Deprecated(since="4.0.0", forRemoval=true) public final class JwtFirstMatchingClaimExtractorJackson2 extends Object implements org.zalando.logbook.attributes.AttributeExtractor
Deprecated, for removal: This API element is subject to removal in a future version.
Extracts a single claim from the JWT bearer token in the request Authorization header. By default, the subject claim "sub" is extracted, but you can pass an (ordered) list of claimNames to be scanned. The first claim in claimNames is then returned, or an empty attribute if no matching claim is found.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JwtFirstMatchingClaimExtractorJackson2(com.fasterxml.jackson.databind.ObjectMapper objectMapper, List<String> claimNames, String claimKey)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.zalando.logbook.attributes.HttpAttributes
    extract(org.zalando.logbook.HttpRequest request)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.zalando.logbook.attributes.AttributeExtractor

    extract
  • Constructor Details

    • JwtFirstMatchingClaimExtractorJackson2

      public JwtFirstMatchingClaimExtractorJackson2(@Nonnull com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Nonnull List<String> claimNames, @Nonnull String claimKey)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • extract

      @Nonnull public org.zalando.logbook.attributes.HttpAttributes extract(org.zalando.logbook.HttpRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      extract in interface org.zalando.logbook.attributes.AttributeExtractor