Class JWTDecoder

  • All Implemented Interfaces:
    AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, MessageEventGenerator, Service, StateManagedComponent

    @ComponentProfile(summary="Decode a header and body from a JSON Web Token",
                      tag="jwt,decode,json,web,token",
                      since="3.11.1")
    public class JWTDecoder
    extends ServiceImp
    This service provides a way to decode a JSON Web Token.
    
        <jwt-decode>
          <unique-id>jwt-decode</unique-id>
          <jwt-string class="string-payload-data-input-parameter"/>
          <secret class="base64-encoded-secret">
            <secret>c64975ba3cf3f9cd58459710b0a42369f34b0759c9967fb5a47eea488e8bea79</secret>
          </secret>
          <header class="multi-payload-string-output-parameter">
            <payload-id>header</payload-id>
          </header>
          <claims class="multi-payload-string-output-parameter">
            <payload-id>claims</payload-id>
          </claims>
        </jwt-decode>
     

    In the adapter configuration file this class is aliased as jwt-decode which is the preferred alternative to the fully qualified classname when building your configuration.