public final class SaslMechanismInformation extends Object
FilterMechanismSaslClientFactory
,
FilterMechanismSaslServerFactory
Modifier and Type | Class and Description |
---|---|
static class |
SaslMechanismInformation.Names |
Modifier and Type | Field and Description |
---|---|
static Predicate<String> |
BINDING
A predicate which is true when a mechanism which uses channel binding is being used.
|
static Predicate<String> |
DIGEST
A predicate which is true when a DIGEST-family mechanism is being used.
|
static Predicate<String> |
EAP
A predicate which is true when an EAP-family mechanism is being used.
|
static Predicate<String> |
GS2
A predicate which is true when a GS2-family mechanism is being used.
|
static Predicate<String> |
HASH_MD5
A predicate which is true when the mechanism uses MD5.
|
static Predicate<String> |
HASH_SHA
A predicate which is true when the mechanism uses SHA.
|
static Predicate<String> |
HASH_SHA_256
A predicate which is true when the mechanism uses SHA-256.
|
static Predicate<String> |
HASH_SHA_384
A predicate which is true when the mechanism uses SHA-384.
|
static Predicate<String> |
HASH_SHA_512
A predicate which is true when the mechanism uses SHA-512.
|
static Predicate<String> |
HASH_SHA_512_256
A predicate which is true when the mechanism uses SHA-512/256.
|
static Predicate<String> |
IEC_ISO_9798
A predicate which is true when a IEC/ISO-9798-family mechanism is being used.
|
static Predicate<String> |
MUTUAL
A predicate which is true when the mechanism supports mutual authentication.
|
static Predicate<String> |
RECOMMENDED
A predicate which is true when the name being tested is a recommended mechanism as of the time of this release.
|
static Predicate<String> |
SCRAM
A predicate which is true when a SCRAM-family mechanism is being used.
|
Constructor and Description |
---|
SaslMechanismInformation() |
Modifier and Type | Method and Description |
---|---|
static boolean |
doesNotRequireClientCredentials(String mechName)
Determine whether a mechanism does not need the client to present credentials.
|
static boolean |
doesNotUsePrincipal(String mechName)
Determine whether the given mechanism name is known to not use any sort of
Principal for authentication. |
static Set<String> |
getSupportedClientCredentialAlgorithms(String mechName,
Class<? extends Credential> credentialType)
Get the supported algorithm names for a SASL client mechanism and credential type.
|
static Set<Class<? extends Credential>> |
getSupportedClientCredentialTypes(String mechName)
Get the supported credential types for the given SASL client mechanism.
|
static Set<Class<? extends Password>> |
getSupportedClientPasswordTypes(String mechName)
Get the supported password types for the given SASL client mechanism.
|
static Set<String> |
getSupportedServerCredentialAlgorithms(String mechName,
Class<? extends Credential> credentialType)
Get the supported algorithm names for a SASL server mechanism and credential type.
|
static Set<Class<? extends Credential>> |
getSupportedServerCredentialTypes(String mechName)
Get the supported credential types for the given SASL server mechanism.
|
static Set<String> |
getSupportedServerEvidenceAlgorithms(String mechName,
Class<? extends AlgorithmEvidence> evidenceType)
Get the supported algorithm names for a SASL server mechanism and evidence type.
|
static Set<Class<? extends Evidence>> |
getSupportedServerEvidenceTypes(String mechName)
Get the supported evidence types for the given SASL server mechanism.
|
static Set<Class<? extends Password>> |
getSupportedServerPasswordTypes(String mechName)
Get the supported password types for the given SASL server mechanism.
|
static boolean |
needsServerCredentials(String mechName)
Determine whether a mechanism needs server-side credentials in order to authenticate.
|
public static final Predicate<String> HASH_MD5
public static final Predicate<String> HASH_SHA
public static final Predicate<String> HASH_SHA_256
public static final Predicate<String> HASH_SHA_384
public static final Predicate<String> HASH_SHA_512
public static final Predicate<String> HASH_SHA_512_256
public static final Predicate<String> GS2
public static final Predicate<String> SCRAM
public static final Predicate<String> DIGEST
public static final Predicate<String> IEC_ISO_9798
public static final Predicate<String> EAP
public static final Predicate<String> MUTUAL
public static final Predicate<String> BINDING
public static Set<Class<? extends Credential>> getSupportedClientCredentialTypes(String mechName)
mechName
- the mechanism namepublic static Set<Class<? extends Password>> getSupportedClientPasswordTypes(String mechName)
mechName
- the mechanism namepublic static Set<Class<? extends Credential>> getSupportedServerCredentialTypes(String mechName)
mechName
- the mechanism namepublic static Set<Class<? extends Password>> getSupportedServerPasswordTypes(String mechName)
mechName
- the mechanism namepublic static Set<String> getSupportedClientCredentialAlgorithms(String mechName, Class<? extends Credential> credentialType)
"*"
is returned.mechName
- the SASL mechanism namecredentialType
- the proposed credential typepublic static Set<String> getSupportedServerCredentialAlgorithms(String mechName, Class<? extends Credential> credentialType)
"*"
is returned.mechName
- the SASL mechanism namecredentialType
- the proposed credential typepublic static Set<Class<? extends Evidence>> getSupportedServerEvidenceTypes(String mechName)
mechName
- the mechanism namepublic static Set<String> getSupportedServerEvidenceAlgorithms(String mechName, Class<? extends AlgorithmEvidence> evidenceType)
mechName
- the SASL mechanism nameevidenceType
- the proposed evidence typepublic static boolean needsServerCredentials(String mechName)
mechName
- the mechanism nametrue
if the mechanism uses credentials, false
otherwisepublic static boolean doesNotUsePrincipal(String mechName)
Principal
for authentication.mechName
- the mechanism name (must not be null
)true
if the mechanism does not use a principal, false
if it does or it is not knownpublic static boolean doesNotRequireClientCredentials(String mechName)
mechName
- the mechanism nametrue
if the mechanism does not require client credentials, false
if it it does or it is not knownCopyright © 2020 JBoss by Red Hat. All rights reserved.