Package org.wildfly.security.http.util
Class SortedServerMechanismFactory
java.lang.Object
org.wildfly.security.http.util.SortedServerMechanismFactory
- All Implemented Interfaces:
HttpServerAuthenticationMechanismFactory
public final class SortedServerMechanismFactory
extends Object
implements HttpServerAuthenticationMechanismFactory
A
HttpServerAuthenticationMechanismFactory which sorts the mechanism names returned using the provided
Comparator.- Author:
- Darran Lofthouse
-
Constructor Summary
ConstructorsConstructorDescriptionSortedServerMechanismFactory(HttpServerAuthenticationMechanismFactory delegate, Comparator<String> mechanismNameComparator) -
Method Summary
Modifier and TypeMethodDescriptioncreateAuthenticationMechanism(String mechanismName, Map<String, ?> properties, CallbackHandler callbackHandler) String[]getMechanismNames(Map<String, ?> properties) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.http.HttpServerAuthenticationMechanismFactory
shutdown
-
Constructor Details
-
SortedServerMechanismFactory
public SortedServerMechanismFactory(HttpServerAuthenticationMechanismFactory delegate, Comparator<String> mechanismNameComparator)
-
-
Method Details
-
getMechanismNames
- Specified by:
getMechanismNamesin interfaceHttpServerAuthenticationMechanismFactory
-
createAuthenticationMechanism
public HttpServerAuthenticationMechanism createAuthenticationMechanism(String mechanismName, Map<String, ?> properties, CallbackHandler callbackHandler) throws HttpAuthenticationException- Specified by:
createAuthenticationMechanismin interfaceHttpServerAuthenticationMechanismFactory- Throws:
HttpAuthenticationException
-