Class PrivilegedServerMechanismFactory
java.lang.Object
org.wildfly.security.http.util.PrivilegedServerMechanismFactory
- All Implemented Interfaces:
org.wildfly.security.http.HttpServerAuthenticationMechanismFactory
public final class PrivilegedServerMechanismFactory
extends Object
implements org.wildfly.security.http.HttpServerAuthenticationMechanismFactory
A
HttpServerAuthenticationMechanismFactory that wraps a delegate so that any returned
HttpServerAuthenticationMechanism is wrapped by a wrapper that ensures all calls are using the provided
AccessControlContext, if no AccessControlContext is provided then the one in place at the time this factory is
instantiated is used instead.- Author:
- Darran Lofthouse
-
Constructor Summary
ConstructorsConstructorDescriptionPrivilegedServerMechanismFactory(org.wildfly.security.http.HttpServerAuthenticationMechanismFactory delegate) Construct a new instance ofPrivilegedServerMechanismFactoryusing the currentAccessControlContextfor calls to the wrapped factoryPrivilegedServerMechanismFactory(org.wildfly.security.http.HttpServerAuthenticationMechanismFactory delegate, AccessControlContext accessControlContext) Construct a new instance ofPrivilegedServerMechanismFactory. -
Method Summary
Modifier and TypeMethodDescriptionorg.wildfly.security.http.HttpServerAuthenticationMechanismcreateAuthenticationMechanism(String mechanismName, Map<String, ?> properties, CallbackHandler callbackHandler) String[]getMechanismNames(Map<String, ?> properties) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.http.HttpServerAuthenticationMechanismFactory
shutdown
-
Constructor Details
-
PrivilegedServerMechanismFactory
public PrivilegedServerMechanismFactory(org.wildfly.security.http.HttpServerAuthenticationMechanismFactory delegate, AccessControlContext accessControlContext) Construct a new instance ofPrivilegedServerMechanismFactory.- Parameters:
delegate- theHttpServerAuthenticationMechanismFactoryto delegate to.accessControlContext- theAccessControlContextto use for calls to the wrapped factory and subsequently any mechanism created by that factory.
-
PrivilegedServerMechanismFactory
public PrivilegedServerMechanismFactory(org.wildfly.security.http.HttpServerAuthenticationMechanismFactory delegate) Construct a new instance ofPrivilegedServerMechanismFactoryusing the currentAccessControlContextfor calls to the wrapped factory- Parameters:
delegate- theHttpServerAuthenticationMechanismFactoryto delegate to.
-
-
Method Details
-
getMechanismNames
-
createAuthenticationMechanism
public org.wildfly.security.http.HttpServerAuthenticationMechanism createAuthenticationMechanism(String mechanismName, Map<String, ?> properties, CallbackHandler callbackHandler) throws org.wildfly.security.http.HttpAuthenticationException- Specified by:
createAuthenticationMechanismin interfaceorg.wildfly.security.http.HttpServerAuthenticationMechanismFactory- Throws:
org.wildfly.security.http.HttpAuthenticationException- See Also:
-