Class DelegatingAuthConfigFactory


  • public class DelegatingAuthConfigFactory
    extends javax.security.auth.message.config.AuthConfigFactory
    An AuthConfigFactory implementation that can delegate to a backup AuthConfigFactory if the Elytron factory is unable to return a provider.
    Author:
    Darran Lofthouse
    • Constructor Detail

      • DelegatingAuthConfigFactory

        public DelegatingAuthConfigFactory​(ElytronAuthConfigFactory elytronAuthConfigFactory,
                                           javax.security.auth.message.config.AuthConfigFactory backupAuthConfigFactory,
                                           Supplier<Boolean> delegationAllowed)
      • DelegatingAuthConfigFactory

        public DelegatingAuthConfigFactory​(ElytronAuthConfigFactory elytronAuthConfigFactory,
                                           javax.security.auth.message.config.AuthConfigFactory backupAuthConfigFactory)
    • Method Detail

      • getConfigProvider

        public javax.security.auth.message.config.AuthConfigProvider getConfigProvider​(String layer,
                                                                                       String appContext,
                                                                                       javax.security.auth.message.config.RegistrationListener listener)
        Specified by:
        getConfigProvider in class javax.security.auth.message.config.AuthConfigFactory
      • getRegistrationIDs

        public String[] getRegistrationIDs​(javax.security.auth.message.config.AuthConfigProvider provider)
        Specified by:
        getRegistrationIDs in class javax.security.auth.message.config.AuthConfigFactory
      • detachListener

        public String[] detachListener​(javax.security.auth.message.config.RegistrationListener listener,
                                       String layer,
                                       String appContext)
        Specified by:
        detachListener in class javax.security.auth.message.config.AuthConfigFactory
      • getRegistrationContext

        public javax.security.auth.message.config.AuthConfigFactory.RegistrationContext getRegistrationContext​(String registrationID)
        Specified by:
        getRegistrationContext in class javax.security.auth.message.config.AuthConfigFactory
      • refresh

        public void refresh()
        Specified by:
        refresh in class javax.security.auth.message.config.AuthConfigFactory
      • registerConfigProvider

        public String registerConfigProvider​(String className,
                                             Map properties,
                                             String layer,
                                             String appContext,
                                             String description)
        Specified by:
        registerConfigProvider in class javax.security.auth.message.config.AuthConfigFactory
      • registerConfigProvider

        public String registerConfigProvider​(javax.security.auth.message.config.AuthConfigProvider provider,
                                             String layer,
                                             String appContext,
                                             String description)
        Specified by:
        registerConfigProvider in class javax.security.auth.message.config.AuthConfigFactory
      • removeRegistration

        public boolean removeRegistration​(String registrationID)
        Specified by:
        removeRegistration in class javax.security.auth.message.config.AuthConfigFactory