Class EndUserClaimsContext

java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.plugin.authn.oidc.rp.context.EndUserClaimsContext
All Implemented Interfaces:
Iterable<BaseContext>

public class EndUserClaimsContext extends BaseContext
A context to hold the final set of claims associated with an authenticated end-user.
  • Field Details

    • endUserClaims

      @Nullable private com.nimbusds.openid.connect.sdk.claims.ClaimsSet endUserClaims
      The claims associated with the authenticated end-user. Often an aggregate of id_token and UserInfo claims
    • unprocessedIdTokenClaims

      @Nullable private com.nimbusds.jwt.JWTClaimsSet unprocessedIdTokenClaims
      The set of unprocessed id_token claims as returned from an id_token source.
  • Constructor Details

    • EndUserClaimsContext

      public EndUserClaimsContext()
  • Method Details

    • getEndUserClaims

      @Nullable public com.nimbusds.openid.connect.sdk.claims.ClaimsSet getEndUserClaims()
      Get the claims about the authenticated end-user.
      Returns:
      the claims.
    • setEndUserClaims

      public EndUserClaimsContext setEndUserClaims(@Nonnull com.nimbusds.openid.connect.sdk.claims.ClaimsSet claims)
      Set the claims about the authenticated end-user.
      Parameters:
      claims - the claims.
      Returns:
      this
    • setUnprocessedIdTokenClaims

      public EndUserClaimsContext setUnprocessedIdTokenClaims(@Nonnull com.nimbusds.jwt.JWTClaimsSet claims)
      Set the id_token claims about the authenticated end-user as returned from the id_token endpoint e.g. from a successful Token Response.

      In contrast, the endUserClaims may contain both an aggregation of claims obtained from other sources e.g. the UserInfo endpoint, and a subset of the id_token claims e.g. only 'identity' claims and not 'validation' claims.

      Parameters:
      claims - the id_token claims
      Returns:
      this
    • getUnprocessedIdTokenClaims

      @Nullable public com.nimbusds.jwt.JWTClaimsSet getUnprocessedIdTokenClaims()
      Get the unproccessed id_token claims.
      Returns:
      the unprocessed id_token claims.