/** * @see org.wildfly.security.http.HttpServerAuthenticationMechanismFactory#getMechanismNames(java.util.Map) */ @Override public String[] getMechanismNames(Map<String, ?> properties) { Set<String> names = new LinkedHashSet<>(); synchronized(serviceLoader) { Iterator<HttpServerAuthenticationMechanismFactory> factoryIterator = serviceLoader.iterator(); try { while (factoryIterator.hasNext()) { HttpServerAuthenticationMechanismFactory current = factoryIterator.next(); Collections.addAll(names, current.getMechanismNames(properties)); } } catch (ServiceConfigurationError e) { log.debug("Unable to read service configuration", e); } } if (log.isTraceEnabled()) { log.tracef("No %s provided by service loader in %s: %s", HttpServerAuthenticationMechanismFactory.class.getSimpleName(), getClass().getSimpleName(), serviceLoader.toString()); } return names.toArray(new String[names.size()]); }
/** * @see org.wildfly.security.http.HttpServerAuthenticationMechanismFactory#createAuthenticationMechanism(java.lang.String, java.util.Map, javax.security.auth.callback.CallbackHandler) */ @Override public HttpServerAuthenticationMechanism createAuthenticationMechanism(String mechanismName, Map<String, ?> properties, CallbackHandler callbackHandler) throws HttpAuthenticationException { synchronized(serviceLoader) { Iterator<HttpServerAuthenticationMechanismFactory> factoryIterator = serviceLoader.iterator(); try { while (factoryIterator.hasNext()) { HttpServerAuthenticationMechanismFactory current = factoryIterator.next(); HttpServerAuthenticationMechanism authenticationMechanism = current.createAuthenticationMechanism(mechanismName, properties, callbackHandler); if (authenticationMechanism != null) { return authenticationMechanism; } } } catch (ServiceConfigurationError e) { log.debug("Unable to read service configuration", e); } } if (log.isTraceEnabled()) { log.tracef("No %s provided by service loader in %s: %s", HttpServerAuthenticationMechanismFactory.class.getSimpleName(), getClass().getSimpleName(), serviceLoader.toString()); } return null; }
/** * @see org.wildfly.security.http.HttpServerAuthenticationMechanismFactory#getMechanismNames(java.util.Map) */ @Override public String[] getMechanismNames(Map<String, ?> properties) { Set<String> names = new LinkedHashSet<>(); synchronized(serviceLoader) { Iterator<HttpServerAuthenticationMechanismFactory> factoryIterator = serviceLoader.iterator(); try { while (factoryIterator.hasNext()) { HttpServerAuthenticationMechanismFactory current = factoryIterator.next(); Collections.addAll(names, current.getMechanismNames(properties)); } } catch (ServiceConfigurationError e) { log.debug("Unable to read service configuration", e); } } if (log.isTraceEnabled()) { log.tracef("No %s provided by service loader in %s: %s", HttpServerAuthenticationMechanismFactory.class.getSimpleName(), getClass().getSimpleName(), serviceLoader.toString()); } return names.toArray(new String[names.size()]); }
/** * @see org.wildfly.security.http.HttpServerAuthenticationMechanismFactory#getMechanismNames(java.util.Map) */ @Override public String[] getMechanismNames(Map<String, ?> properties) { Set<String> names = new LinkedHashSet<>(); synchronized(serviceLoader) { Iterator<HttpServerAuthenticationMechanismFactory> factoryIterator = serviceLoader.iterator(); try { while (factoryIterator.hasNext()) { HttpServerAuthenticationMechanismFactory current = factoryIterator.next(); Collections.addAll(names, current.getMechanismNames(properties)); } } catch (ServiceConfigurationError e) { log.debug("Unable to read service configuration", e); } } if (log.isTraceEnabled()) { log.tracef("No %s provided by service loader in %s: %s", HttpServerAuthenticationMechanismFactory.class.getSimpleName(), getClass().getSimpleName(), serviceLoader.toString()); } return names.toArray(new String[names.size()]); }
/** * @see org.wildfly.security.http.HttpServerAuthenticationMechanismFactory#getMechanismNames(java.util.Map) */ @Override public String[] getMechanismNames(Map<String, ?> properties) { Set<String> names = new LinkedHashSet<>(); synchronized(serviceLoader) { Iterator<HttpServerAuthenticationMechanismFactory> factoryIterator = serviceLoader.iterator(); try { while (factoryIterator.hasNext()) { HttpServerAuthenticationMechanismFactory current = factoryIterator.next(); Collections.addAll(names, current.getMechanismNames(properties)); } } catch (ServiceConfigurationError e) { log.debug("Unable to read service configuration", e); } } if (log.isTraceEnabled()) { log.tracef("No %s provided by service loader in %s: %s", HttpServerAuthenticationMechanismFactory.class.getSimpleName(), getClass().getSimpleName(), serviceLoader.toString()); } return names.toArray(new String[names.size()]); }
/** * @see org.wildfly.security.http.HttpServerAuthenticationMechanismFactory#createAuthenticationMechanism(java.lang.String, java.util.Map, javax.security.auth.callback.CallbackHandler) */ @Override public HttpServerAuthenticationMechanism createAuthenticationMechanism(String mechanismName, Map<String, ?> properties, CallbackHandler callbackHandler) throws HttpAuthenticationException { synchronized(serviceLoader) { Iterator<HttpServerAuthenticationMechanismFactory> factoryIterator = serviceLoader.iterator(); try { while (factoryIterator.hasNext()) { HttpServerAuthenticationMechanismFactory current = factoryIterator.next(); HttpServerAuthenticationMechanism authenticationMechanism = current.createAuthenticationMechanism(mechanismName, properties, callbackHandler); if (authenticationMechanism != null) { return authenticationMechanism; } } } catch (ServiceConfigurationError e) { log.debug("Unable to read service configuration", e); } } if (log.isTraceEnabled()) { log.tracef("No %s provided by service loader in %s: %s", HttpServerAuthenticationMechanismFactory.class.getSimpleName(), getClass().getSimpleName(), serviceLoader.toString()); } return null; }
/** * @see org.wildfly.security.http.HttpServerAuthenticationMechanismFactory#createAuthenticationMechanism(java.lang.String, java.util.Map, javax.security.auth.callback.CallbackHandler) */ @Override public HttpServerAuthenticationMechanism createAuthenticationMechanism(String mechanismName, Map<String, ?> properties, CallbackHandler callbackHandler) throws HttpAuthenticationException { synchronized(serviceLoader) { Iterator<HttpServerAuthenticationMechanismFactory> factoryIterator = serviceLoader.iterator(); try { while (factoryIterator.hasNext()) { HttpServerAuthenticationMechanismFactory current = factoryIterator.next(); HttpServerAuthenticationMechanism authenticationMechanism = current.createAuthenticationMechanism(mechanismName, properties, callbackHandler); if (authenticationMechanism != null) { return authenticationMechanism; } } } catch (ServiceConfigurationError e) { log.debug("Unable to read service configuration", e); } } if (log.isTraceEnabled()) { log.tracef("No %s provided by service loader in %s: %s", HttpServerAuthenticationMechanismFactory.class.getSimpleName(), getClass().getSimpleName(), serviceLoader.toString()); } return null; }
/** * @see org.wildfly.security.http.HttpServerAuthenticationMechanismFactory#createAuthenticationMechanism(java.lang.String, java.util.Map, javax.security.auth.callback.CallbackHandler) */ @Override public HttpServerAuthenticationMechanism createAuthenticationMechanism(String mechanismName, Map<String, ?> properties, CallbackHandler callbackHandler) throws HttpAuthenticationException { synchronized(serviceLoader) { Iterator<HttpServerAuthenticationMechanismFactory> factoryIterator = serviceLoader.iterator(); try { while (factoryIterator.hasNext()) { HttpServerAuthenticationMechanismFactory current = factoryIterator.next(); HttpServerAuthenticationMechanism authenticationMechanism = current.createAuthenticationMechanism(mechanismName, properties, callbackHandler); if (authenticationMechanism != null) { return authenticationMechanism; } } } catch (ServiceConfigurationError e) { log.debug("Unable to read service configuration", e); } } if (log.isTraceEnabled()) { log.tracef("No %s provided by service loader in %s: %s", HttpServerAuthenticationMechanismFactory.class.getSimpleName(), getClass().getSimpleName(), serviceLoader.toString()); } return null; }