Class SecurityProviderServerMechanismFactory

java.lang.Object
org.wildfly.security.http.util.SecurityProviderServerMechanismFactory
All Implemented Interfaces:
org.wildfly.security.http.HttpServerAuthenticationMechanismFactory

public final class SecurityProviderServerMechanismFactory extends Object implements org.wildfly.security.http.HttpServerAuthenticationMechanismFactory
A HttpServerAuthenticationMechanismFactory that loads factories from a supplied array of Provider instances. The provider service instances may or may not be cached.
Author:
Darran Lofthouse
  • Constructor Details

    • SecurityProviderServerMechanismFactory

      public SecurityProviderServerMechanismFactory()
      Construct a new instance which uses the globally registered Provider instances.
    • SecurityProviderServerMechanismFactory

      public SecurityProviderServerMechanismFactory(Supplier<Provider[]> providerSupplier)
      Construct a new instance of SecurityProviderServerMechanismFactory.
      Parameters:
      providerSupplier - a supplier of providers to use for locating the factories
    • SecurityProviderServerMechanismFactory

      public SecurityProviderServerMechanismFactory(Provider[] providers)
      Construct a new instance of SecurityProviderServerMechanismFactory.
      Parameters:
      providers - the provider instances this factory should use.
    • SecurityProviderServerMechanismFactory

      public SecurityProviderServerMechanismFactory(Provider provider)
      Construct a new instance of SecurityProviderServerMechanismFactory.
      Parameters:
      provider - the provider instance this factory should use.
  • Method Details

    • getMechanismNames

      public String[] getMechanismNames(Map<String,?> properties)
      Specified by:
      getMechanismNames in interface org.wildfly.security.http.HttpServerAuthenticationMechanismFactory
      See Also:
      • HttpServerAuthenticationMechanismFactory.getMechanismNames(java.util.Map)
    • createAuthenticationMechanism

      public org.wildfly.security.http.HttpServerAuthenticationMechanism createAuthenticationMechanism(String mechanismName, Map<String,?> properties, CallbackHandler callbackHandler) throws org.wildfly.security.http.HttpAuthenticationException
      Specified by:
      createAuthenticationMechanism in interface org.wildfly.security.http.HttpServerAuthenticationMechanismFactory
      Throws:
      org.wildfly.security.http.HttpAuthenticationException
      See Also:
      • HttpServerAuthenticationMechanismFactory.createAuthenticationMechanism(java.lang.String, java.util.Map, javax.security.auth.callback.CallbackHandler)