Class SaslAuthenticationFactory
java.lang.Object
org.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory,SaslException>
org.wildfly.security.auth.server.sasl.SaslAuthenticationFactory
- All Implemented Interfaces:
MechanismAuthenticationFactory<SaslServer,SaslServerFactory, SaslException>
public final class SaslAuthenticationFactory
extends AbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory,SaslException>
A SASL server factory configuration.
- Author:
- David M. Lloyd
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for SASL server factory configurations. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Obtain a newSaslAuthenticationFactory.Buildercapable of building aSaslAuthenticationFactory.protected SaslServerdoCreate(String name, CallbackHandler callbackHandler, UnaryOperator<SaslServerFactory> factoryTransformation) protected Collection<String>protected Collection<String>getSupportedCredentialAlgorithmNames(Class<? extends AlgorithmCredential> credentialType, String mechName) protected Collection<Class<? extends Credential>>getSupportedCredentialTypes(String mechName) protected Collection<String>getSupportedEvidenceAlgorithmNames(Class<? extends AlgorithmEvidence> evidenceType, String mechName) protected Collection<Class<? extends Evidence>>getSupportedEvidenceTypes(String mechName) protected booleanisKnownMechanism(String mechName) Determine whether the given mechanism name is known to WildFly Elytron.protected booleanusesCredentials(String mechName) Determine whether the given mechanism name needs credentials from a realm in order to authenticate.Methods inherited from class org.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory
createMechanism, getFactory, getMechanismConfigurationSelector, getMechanismNames, getSecurityDomainMethods inherited from class java.lang.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 SaslServer doCreate(String name, CallbackHandler callbackHandler, UnaryOperator<SaslServerFactory> factoryTransformation) throws SaslException - Specified by:
doCreatein classAbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory, SaslException> - Throws:
SaslException
-
getAllSupportedMechNames
- Specified by:
getAllSupportedMechNamesin classAbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory, SaslException>
-
getSupportedEvidenceTypes
- Specified by:
getSupportedEvidenceTypesin classAbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory, SaslException>
-
getSupportedEvidenceAlgorithmNames
protected Collection<String> getSupportedEvidenceAlgorithmNames(Class<? extends AlgorithmEvidence> evidenceType, String mechName) - Specified by:
getSupportedEvidenceAlgorithmNamesin classAbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory, SaslException>
-
getSupportedCredentialTypes
- Specified by:
getSupportedCredentialTypesin classAbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory, SaslException>
-
getSupportedCredentialAlgorithmNames
protected Collection<String> getSupportedCredentialAlgorithmNames(Class<? extends AlgorithmCredential> credentialType, String mechName) -
usesCredentials
Description copied from class:AbstractMechanismAuthenticationFactoryDetermine whether the given mechanism name needs credentials from a realm in order to authenticate.- Specified by:
usesCredentialsin classAbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory, SaslException> - Parameters:
mechName- the mechanism name- Returns:
trueif the mechanism requires realm credential support,falseif it does not
-
isKnownMechanism
Description copied from class:AbstractMechanismAuthenticationFactoryDetermine whether the given mechanism name is known to WildFly Elytron. If it is not known we can't filter it out as we can not rely upon the other methods being able to return accurate responses about the mechanisms requirements. As this is a new method and other implementations may not know to override this has a default implementation to match the current behaviour i.e. assume we know about all mechanisms.- Overrides:
isKnownMechanismin classAbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory, SaslException> - Parameters:
mechName- the mechanism name- Returns:
trueif the mechanism is known to WildFly Elytron,falseif it is not
-
builder
Obtain a newSaslAuthenticationFactory.Buildercapable of building aSaslAuthenticationFactory.- Returns:
- a new
SaslAuthenticationFactory.Buildercapable of building aSaslAuthenticationFactory.
-