Class TokenExtensionFactory

java.lang.Object
net.shibboleth.idp.plugin.oidc.op.profile.spring.TokenExtensionFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class TokenExtensionFactory extends Object implements org.springframework.context.ApplicationContextAware
Factory used for obtaining token extension beans of the desired type, identifier and scope.
  • Field Details

    • log

      @Nonnull private org.slf4j.Logger log
      Class logger.
    • applicationContext

      private org.springframework.context.ApplicationContext applicationContext
      The application context from where to fetch the custom policy operators.
    • beanId

      @Nonnull private final String beanId
      The identifier for the token extension bean.
    • extensionType

      @Nonnull private final org.springframework.core.ResolvableType extensionType
      The token extension type.
    • allowNonPrototype

      private final boolean allowNonPrototype
      Flag to signal whether to allow non-prototype beans.
  • Constructor Details

  • Method Details

    • getBean

      @Nullable public Object getBean()
      Get the token extension bean by using constraints from the class variables.
      Returns:
      The bean if one meeting the constraints was found, or null otherwise.
    • setApplicationContext

      public void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException