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 Summary
Fields Modifier and Type Field Description private com.fasterxml.jackson.databind.ObjectMapperobjectMapperThread-safe JSON object mapper.
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultTokenResponseConverter()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.nimbusds.jwt.JWTapply(com.duosecurity.model.Token t, DuoOIDCIntegration integ)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
apply
@Nullable public com.nimbusds.jwt.JWT apply(@Nonnull com.duosecurity.model.Token t, @Nonnull DuoOIDCIntegration integ)- Specified by:
applyin interfaceBiFunction<com.duosecurity.model.Token,DuoOIDCIntegration,com.nimbusds.jwt.JWT>
-
-