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
FieldsModifier and TypeFieldDescriptionprivate final com.fasterxml.jackson.databind.ObjectMapperThread-safe JSON object mapper. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.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, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
objectMapper
@Nonnull private final com.fasterxml.jackson.databind.ObjectMapper objectMapperThread-safe JSON object mapper.
-
-
Constructor Details
-
DefaultTokenResponseConverter
private DefaultTokenResponseConverter()Constructor.
-
-
Method Details
-
apply
@Nullable public com.nimbusds.jwt.JWT apply(@Nullable com.duosecurity.model.Token t, @Nullable DuoOIDCIntegration integ) - Specified by:
applyin interfaceBiFunction<com.duosecurity.model.Token,DuoOIDCIntegration, com.nimbusds.jwt.JWT>
-