Class FormOutboundKeySetResponseMessage

    • Field Detail

      • log

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

        @Nonnull
        private Function<ProfileRequestContext,​net.shibboleth.idp.profile.context.RelyingPartyContext> relyingPartyContextLookupStrategy
        Strategy used to locate the RelyingPartyContext associated with a given ProfileRequestContext.
      • secConfiguration

        @Nullable
        private JSONSecurityConfiguration secConfiguration
        Security configuration we look for keys to publish.
    • Constructor Detail

      • FormOutboundKeySetResponseMessage

        public FormOutboundKeySetResponseMessage()
        Constructor.
    • Method Detail

      • setRelyingPartyContextLookupStrategy

        public void setRelyingPartyContextLookupStrategy​(@Nonnull
                                                         Function<ProfileRequestContext,​net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)
        Set the strategy used to locate the RelyingPartyContext associated with a given ProfileRequestContext.
        Parameters:
        strategy - strategy used to locate the RelyingPartyContext associated with a given ProfileRequestContext
      • setCredentialsToPublishLookupStrategy

        public void setCredentialsToPublishLookupStrategy​(@Nonnull
                                                          Function<JSONSecurityConfiguration,​List<Credential>> strategy)
        Set the strategy used to locate the credentials to publish at the KeySet endpoint.
        Parameters:
        strategy - the strategy.
      • convertAndPublishToList

        protected void convertAndPublishToList​(List<Credential> credentials,
                                               List<com.nimbusds.jose.jwk.JWK> publishList)
        Converts the given credentials into JWK and adds all the successfully converted JWKs to the given list.
        Parameters:
        credentials - The list of credentials to be converted to JWKs.
        publishList - The list where the successfully converted JWKs are put.