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 theSecurityDomain
andHttpServerAuthenticationMechanismFactory
for obtaining configured mechanisms.- Author:
- Darran Lofthouse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpAuthenticationFactory.Builder
A builder for SASL server factory configurations.
-
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
-
-
-
-
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:AbstractMechanismAuthenticationFactory
Determine whether the given mechanism name needs credentials from a realm in order to authenticate.- Specified by:
usesCredentials
in classAbstractMechanismAuthenticationFactory<HttpServerAuthenticationMechanism,HttpServerAuthenticationMechanismFactory,HttpAuthenticationException>
- Parameters:
mechName
- the mechanism name- Returns:
true
if the mechanism requires realm credential support,false
if it does not
-
shutdownAuthenticationMechanismFactory
public void shutdownAuthenticationMechanismFactory()
-
builder
public static HttpAuthenticationFactory.Builder builder()
Obtain a newHttpAuthenticationFactory.Builder
capable of building aHttpAuthenticationFactory
.- Returns:
- a new
HttpAuthenticationFactory.Builder
capable of building aHttpAuthenticationFactory
.
-
-