Class DuoSDKClientAdaptor.DefaultTokenResponseConverter

java.lang.Object
net.shibboleth.idp.plugin.authn.duo.sdk.impl.DuoSDKClientAdaptor.DefaultTokenResponseConverter
All Implemented Interfaces:
BiFunction<com.duosecurity.model.Token,DuoOIDCIntegration,com.nimbusds.jwt.JWT>
Enclosing class:
DuoSDKClientAdaptor

@ThreadSafe private final class DuoSDKClientAdaptor.DefaultTokenResponseConverter extends Object implements BiFunction<com.duosecurity.model.Token,DuoOIDCIntegration,com.nimbusds.jwt.JWT>
Default Duo token converter. Creates a JWT by converting the Duo token (back) to a JSON String which it uses to create a **signed** JWT. As the signature is not returned from the Duo SDK and the flow requires a signed JWT, a new HMAC signature is computed using the integrations secret key.
  • Field Details

    • objectMapper

      @Nonnull private final com.fasterxml.jackson.databind.ObjectMapper objectMapper
      Thread-safe JSON object mapper.
  • Constructor Details

    • DefaultTokenResponseConverter

      private DefaultTokenResponseConverter()
      Constructor.
  • Method Details