Class HttpAuthenticationFactory
java.lang.Object
org.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory<org.wildfly.security.http.HttpServerAuthenticationMechanism, org.wildfly.security.http.HttpServerAuthenticationMechanismFactory, org.wildfly.security.http.HttpAuthenticationException>
org.wildfly.security.auth.server.http.HttpAuthenticationFactory
- All Implemented Interfaces:
org.wildfly.security.auth.server.MechanismAuthenticationFactory<org.wildfly.security.http.HttpServerAuthenticationMechanism, org.wildfly.security.http.HttpServerAuthenticationMechanismFactory, org.wildfly.security.http.HttpAuthenticationException>
public final class HttpAuthenticationFactory
extends org.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory<org.wildfly.security.http.HttpServerAuthenticationMechanism, org.wildfly.security.http.HttpServerAuthenticationMechanismFactory, org.wildfly.security.http.HttpAuthenticationException>
A HTTP authentication mechanism configuration, the configuration is associated with the
SecurityDomain and
HttpServerAuthenticationMechanismFactory for obtaining configured mechanisms.- Author:
- Darran Lofthouse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for SASL server factory configurations. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Obtain a newHttpAuthenticationFactory.Buildercapable of building aHttpAuthenticationFactory.protected org.wildfly.security.http.HttpServerAuthenticationMechanismdoCreate(String name, CallbackHandler callbackHandler, UnaryOperator<org.wildfly.security.http.HttpServerAuthenticationMechanismFactory> factoryTransformation) protected Collection<String> protected Collection<String> getSupportedCredentialAlgorithmNames(Class<? extends org.wildfly.security.credential.AlgorithmCredential> credentialType, String mechName) protected Collection<Class<? extends org.wildfly.security.credential.Credential>> getSupportedCredentialTypes(String mechName) protected Collection<String> getSupportedEvidenceAlgorithmNames(Class<? extends org.wildfly.security.evidence.AlgorithmEvidence> evidenceType, String mechName) protected Collection<Class<? extends org.wildfly.security.evidence.Evidence>> getSupportedEvidenceTypes(String mechName) protected booleanisKnownMechanism(String mechName) voidprotected booleanusesCredentials(String mechName) Methods inherited from class org.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory
createMechanism, getFactory, getMechanismConfigurationSelector, getMechanismNames, getSecurityDomainMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.auth.server.MechanismAuthenticationFactory
createMechanism
-
Method Details
-
doCreate
protected org.wildfly.security.http.HttpServerAuthenticationMechanism doCreate(String name, CallbackHandler callbackHandler, UnaryOperator<org.wildfly.security.http.HttpServerAuthenticationMechanismFactory> factoryTransformation) throws org.wildfly.security.http.HttpAuthenticationException - Specified by:
doCreatein classorg.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory<org.wildfly.security.http.HttpServerAuthenticationMechanism, org.wildfly.security.http.HttpServerAuthenticationMechanismFactory, org.wildfly.security.http.HttpAuthenticationException>- Throws:
org.wildfly.security.http.HttpAuthenticationException
-
getAllSupportedMechNames
- Specified by:
getAllSupportedMechNamesin classorg.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory<org.wildfly.security.http.HttpServerAuthenticationMechanism, org.wildfly.security.http.HttpServerAuthenticationMechanismFactory, org.wildfly.security.http.HttpAuthenticationException>
-
getSupportedEvidenceTypes
protected Collection<Class<? extends org.wildfly.security.evidence.Evidence>> getSupportedEvidenceTypes(String mechName) - Specified by:
getSupportedEvidenceTypesin classorg.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory<org.wildfly.security.http.HttpServerAuthenticationMechanism, org.wildfly.security.http.HttpServerAuthenticationMechanismFactory, org.wildfly.security.http.HttpAuthenticationException>
-
getSupportedEvidenceAlgorithmNames
protected Collection<String> getSupportedEvidenceAlgorithmNames(Class<? extends org.wildfly.security.evidence.AlgorithmEvidence> evidenceType, String mechName) - Specified by:
getSupportedEvidenceAlgorithmNamesin classorg.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory<org.wildfly.security.http.HttpServerAuthenticationMechanism, org.wildfly.security.http.HttpServerAuthenticationMechanismFactory, org.wildfly.security.http.HttpAuthenticationException>
-
getSupportedCredentialTypes
protected Collection<Class<? extends org.wildfly.security.credential.Credential>> getSupportedCredentialTypes(String mechName) - Specified by:
getSupportedCredentialTypesin classorg.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory<org.wildfly.security.http.HttpServerAuthenticationMechanism, org.wildfly.security.http.HttpServerAuthenticationMechanismFactory, org.wildfly.security.http.HttpAuthenticationException>
-
getSupportedCredentialAlgorithmNames
protected Collection<String> getSupportedCredentialAlgorithmNames(Class<? extends org.wildfly.security.credential.AlgorithmCredential> credentialType, String mechName) - Specified by:
getSupportedCredentialAlgorithmNamesin classorg.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory<org.wildfly.security.http.HttpServerAuthenticationMechanism, org.wildfly.security.http.HttpServerAuthenticationMechanismFactory, org.wildfly.security.http.HttpAuthenticationException>
-
usesCredentials
- Specified by:
usesCredentialsin classorg.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory<org.wildfly.security.http.HttpServerAuthenticationMechanism, org.wildfly.security.http.HttpServerAuthenticationMechanismFactory, org.wildfly.security.http.HttpAuthenticationException>
-
isKnownMechanism
- Overrides:
isKnownMechanismin classorg.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory<org.wildfly.security.http.HttpServerAuthenticationMechanism, org.wildfly.security.http.HttpServerAuthenticationMechanismFactory, org.wildfly.security.http.HttpAuthenticationException>
-
shutdownAuthenticationMechanismFactory
public void shutdownAuthenticationMechanismFactory() -
builder
Obtain a newHttpAuthenticationFactory.Buildercapable of building aHttpAuthenticationFactory.- Returns:
- a new
HttpAuthenticationFactory.Buildercapable of building aHttpAuthenticationFactory.
-