public final class MechanismConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MechanismConfiguration.Builder
A builder for authentication mechanism configuration.
|
Modifier and Type | Field and Description |
---|---|
static MechanismConfiguration |
EMPTY
An empty mechanism configuration..
|
Modifier and Type | Method and Description |
---|---|
static MechanismConfiguration.Builder |
builder()
Obtain a new
MechanismConfiguration.Builder capable of building a MechanismConfiguration . |
Function<Principal,Principal> |
getFinalRewriter()
Get the final rewriter for this mechanism realm.
|
MechanismRealmConfiguration |
getMechanismRealmConfiguration(String realmName)
Get the mechanism realm configuration for the offered realm with the given name.
|
Collection<String> |
getMechanismRealmNames()
Get the collection of mechanism realm names, in order.
|
Function<Principal,Principal> |
getPostRealmRewriter()
Get the post-realm rewriter for this mechanism realm.
|
Function<Principal,Principal> |
getPreRealmRewriter()
Get the pre-realm rewriter for this mechanism realm.
|
RealmMapper |
getRealmMapper()
Get the realm mapper.
|
CredentialSource |
getServerCredentialSource()
Get the server credential source.
|
public static final MechanismConfiguration EMPTY
public Function<Principal,Principal> getPreRealmRewriter()
null
to use the defaultpublic Function<Principal,Principal> getPostRealmRewriter()
null
to use the defaultpublic Function<Principal,Principal> getFinalRewriter()
null
to use the defaultpublic RealmMapper getRealmMapper()
null
to use the defaultpublic Collection<String> getMechanismRealmNames()
null
)public CredentialSource getServerCredentialSource()
public MechanismRealmConfiguration getMechanismRealmConfiguration(String realmName)
null
is returned. If the realm name is equal to one of the names returned by getMechanismRealmNames()
on this same instance then it is guaranteed that null
is never returned.realmName
- the realm namenull
if the realm name is unknownpublic static MechanismConfiguration.Builder builder()
MechanismConfiguration.Builder
capable of building a MechanismConfiguration
.MechanismConfiguration.Builder
capable of building a MechanismConfiguration
.Copyright © 2020 JBoss by Red Hat. All rights reserved.