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 Classes Modifier and Type Class Description static classSaslAuthenticationFactory.BuilderA builder for SASL server factory configurations.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SaslAuthenticationFactory.Builderbuilder()Obtain a newSaslAuthenticationFactory.Buildercapable of building aSaslAuthenticationFactory.protected SaslServerdoCreate(String name, CallbackHandler callbackHandler, UnaryOperator<SaslServerFactory> factoryTransformation)protected Collection<String>getAllSupportedMechNames()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 booleanusesCredentials(String mechName)-
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 SaslServer doCreate(String name, CallbackHandler callbackHandler, UnaryOperator<SaslServerFactory> factoryTransformation) throws SaslException
- Specified by:
doCreatein classAbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory,SaslException>- Throws:
SaslException
-
getAllSupportedMechNames
protected Collection<String> getAllSupportedMechNames()
- Specified by:
getAllSupportedMechNamesin classAbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory,SaslException>
-
getSupportedEvidenceTypes
protected Collection<Class<? extends Evidence>> getSupportedEvidenceTypes(String mechName)
- 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
protected Collection<Class<? extends Credential>> getSupportedCredentialTypes(String mechName)
- Specified by:
getSupportedCredentialTypesin classAbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory,SaslException>
-
getSupportedCredentialAlgorithmNames
protected Collection<String> getSupportedCredentialAlgorithmNames(Class<? extends AlgorithmCredential> credentialType, String mechName)
- Specified by:
getSupportedCredentialAlgorithmNamesin classAbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory,SaslException>
-
usesCredentials
protected boolean usesCredentials(String mechName)
- Specified by:
usesCredentialsin classAbstractMechanismAuthenticationFactory<SaslServer,SaslServerFactory,SaslException>
-
builder
public static SaslAuthenticationFactory.Builder builder()
Obtain a newSaslAuthenticationFactory.Buildercapable of building aSaslAuthenticationFactory.- Returns:
- a new
SaslAuthenticationFactory.Buildercapable of building aSaslAuthenticationFactory.
-
-