Class AbstractClaimsSetAuditExtractor<T>

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
    • Constructor Detail

      • AbstractClaimsSetAuditExtractor

        public AbstractClaimsSetAuditExtractor()
    • Method Detail

      • getClaimName

        protected String getClaimName()
        Get the claim name to extract.
        Returns:
        the claim name.
      • setClaimName

        public void setClaimName​(@Nonnull
                                 String claim)
        Set the claim whose value is to be extracted from the id_token claims set.
        Parameters:
        claim - the claim name
      • setClaimsSetLookupStrategy

        public void setClaimsSetLookupStrategy​(@Nonnull
                                               Function<ProfileRequestContext,​com.nimbusds.openid.connect.sdk.claims.ClaimsSet> strategy)
        Set the strategy used to lookup the JWTClaimsSet to look for the claim in.
        Parameters:
        strategy - the strategy
      • getClaimsSetLookupStrategy

        private Function<ProfileRequestContext,​com.nimbusds.openid.connect.sdk.claims.ClaimsSet> getClaimsSetLookupStrategy()
        Get the claims set lookup strategy.
        Returns:
        the strategy
      • doLookup

        @Nullable
        protected abstract T doLookup​(@Nonnull
                                      com.nimbusds.openid.connect.sdk.claims.ClaimsSet req)
                               throws ParseException
        Implemented to perform the actual lookup.
        Parameters:
        req - authentication request to perform the lookup from
        Returns:
        lookup value or null if not found
        Throws:
        ParseException - on error lookin up the claim