Class 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 Detail

      • objectMapper

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

      • DefaultTokenResponseConverter

        private DefaultTokenResponseConverter()
        Constructor.
    • Method Detail