Class RelyingPartySigningParametersResolver

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Logger.
      • providerMetadataAlgorithmLookupStrategy

        @Nonnull
        private Function<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata,​List<String>> providerMetadataAlgorithmLookupStrategy
        A strategy to pull out the correct set of supported algorithms from the OIDCProviderMetadata. By default returns null, signalling 'do not filter'.
    • Constructor Detail

      • RelyingPartySigningParametersResolver

        public RelyingPartySigningParametersResolver()
        Constructor.
    • Method Detail

      • setProviderMetadataAlgorithmLookupStrategy

        public void setProviderMetadataAlgorithmLookupStrategy​(@Nonnull
                                                               Function<com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata,​List<String>> strategy)
        Set the strategy used to locate the supported signing algorithms from the OP's metadata for this resolver instance. For example, id_token or request object signing algorithms.
        Parameters:
        strategy - the strategy
      • convertSupportAlgorithmsToJwkAlgorithms

        @Nonnull
        private List<com.nimbusds.jose.JWSAlgorithm> convertSupportAlgorithmsToJwkAlgorithms​(@Nonnull
                                                                                             List<String> algos)
        Convert the algorithms represented as strings, into Nimbus Algorithms for later comparison.
        Parameters:
        algos - the algorithms to convert
        Returns:
        the converted algorithms
      • filterForProviderSupportedAlgorithms

        private List<String> filterForProviderSupportedAlgorithms​(@Nonnull
                                                                  CriteriaSet criteria,
                                                                  @Nonnull
                                                                  List<String> algorithms)
        Filter the set of algorithms against the set supported by the OpenID Provider. Always returns a new list reference. The ordering of the input algorithms should be preserved.
        Parameters:
        criteria - the criteria to extract the OP's metadata from to check supported algorithms.
        algorithms - the current set of supported algorithms
        Returns:
        the current set of supported algorithms filtered by those also supported by the OP.