Class HttpAuthenticationFactory
- java.lang.Object
-
- org.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory<HttpServerAuthenticationMechanism,HttpServerAuthenticationMechanismFactory,HttpAuthenticationException>
-
- org.wildfly.security.auth.server.http.HttpAuthenticationFactory
-
- All Implemented Interfaces:
MechanismAuthenticationFactory<HttpServerAuthenticationMechanism,HttpServerAuthenticationMechanismFactory,HttpAuthenticationException>
public final class HttpAuthenticationFactory extends AbstractMechanismAuthenticationFactory<HttpServerAuthenticationMechanism,HttpServerAuthenticationMechanismFactory,HttpAuthenticationException>
A HTTP authentication mechanism configuration, the configuration is associated with theSecurityDomainandHttpServerAuthenticationMechanismFactoryfor obtaining configured mechanisms.- Author:
- Darran Lofthouse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpAuthenticationFactory.BuilderA builder for SASL server factory configurations.
-
Constructor Summary
Constructors Constructor Description HttpAuthenticationFactory(SecurityDomain securityDomain, MechanismConfigurationSelector mechanismConfigurationSelector, HttpServerAuthenticationMechanismFactory factory)
-
Method Summary
-
Methods inherited from class org.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory
createMechanism, getFactory, getMechanismNames, getSecurityDomain
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.auth.server.MechanismAuthenticationFactory
createMechanism
-
-
-
-
Constructor Detail
-
HttpAuthenticationFactory
HttpAuthenticationFactory(SecurityDomain securityDomain, MechanismConfigurationSelector mechanismConfigurationSelector, HttpServerAuthenticationMechanismFactory factory)
-
-
Method Detail
-
doCreate
protected HttpServerAuthenticationMechanism doCreate(String name, CallbackHandler callbackHandler, UnaryOperator<HttpServerAuthenticationMechanismFactory> factoryTransformation) throws HttpAuthenticationException
-
getAllSupportedMechNames
protected Collection<String> getAllSupportedMechNames()
-
getSupportedEvidenceTypes
protected Collection<Class<? extends Evidence>> getSupportedEvidenceTypes(String mechName)
-
getSupportedEvidenceAlgorithmNames
protected Collection<String> getSupportedEvidenceAlgorithmNames(Class<? extends AlgorithmEvidence> evidenceType, String mechName)
-
getSupportedCredentialTypes
protected Collection<Class<? extends Credential>> getSupportedCredentialTypes(String mechName)
-
getSupportedCredentialAlgorithmNames
protected Collection<String> getSupportedCredentialAlgorithmNames(Class<? extends AlgorithmCredential> credentialType, String mechName)
-
usesCredentials
protected boolean usesCredentials(String mechName)
Description copied from class:AbstractMechanismAuthenticationFactoryDetermine whether the given mechanism name needs credentials from a realm in order to authenticate.- Specified by:
usesCredentialsin classAbstractMechanismAuthenticationFactory<HttpServerAuthenticationMechanism,HttpServerAuthenticationMechanismFactory,HttpAuthenticationException>- Parameters:
mechName- the mechanism name- Returns:
trueif the mechanism requires realm credential support,falseif it does not
-
shutdownAuthenticationMechanismFactory
public void shutdownAuthenticationMechanismFactory()
-
builder
public static HttpAuthenticationFactory.Builder builder()
Obtain a newHttpAuthenticationFactory.Buildercapable of building aHttpAuthenticationFactory.- Returns:
- a new
HttpAuthenticationFactory.Buildercapable of building aHttpAuthenticationFactory.
-
-