Class UserInfoJWTLookupStrategy

java.lang.Object
net.shibboleth.sp.oidc.profile.context.navigate.UserInfoJWTLookupStrategy
All Implemented Interfaces:
Function<org.opensaml.profile.context.ProfileRequestContext,com.nimbusds.jwt.JWT>

@ThreadSafe public class UserInfoJWTLookupStrategy extends Object implements Function<org.opensaml.profile.context.ProfileRequestContext,com.nimbusds.jwt.JWT>
Function that extracts the UserInfo claims as a JWT from the UserInfoResponseContext. If not found, returns null.
  • Field Details

    • userInfoResponseContextLookupStrategy

      @Nonnull private final Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.oidc.profile.context.UserInfoResponseContext> userInfoResponseContextLookupStrategy
      Strategy used to look up the UserInfoResponseContext.
  • Constructor Details

    • UserInfoJWTLookupStrategy

      public UserInfoJWTLookupStrategy()
      Constructor.
    • UserInfoJWTLookupStrategy

      public UserInfoJWTLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.oidc.profile.context.UserInfoResponseContext> strategy)
      Constructor.
      Parameters:
      strategy - the UserInfo response context lookup strategy to use.
  • Method Details

    • apply

      @Nullable public com.nimbusds.jwt.JWT apply(@Nullable org.opensaml.profile.context.ProfileRequestContext prc)
      Specified by:
      apply in interface Function<org.opensaml.profile.context.ProfileRequestContext,com.nimbusds.jwt.JWT>