public static final class MechanismConfiguration.Builder extends Object
Modifier and Type | Method and Description |
---|---|
MechanismConfiguration.Builder |
addMechanismRealm(MechanismRealmConfiguration configuration)
Adds a configuration for one of realms of this mechanism.
|
MechanismConfiguration |
build()
Build a new instance.
|
MechanismConfiguration.Builder |
setFinalRewriter(Function<Principal,Principal> finalRewriter)
Set a final principal transformer to apply for this mechanism realm.
|
MechanismConfiguration.Builder |
setPostRealmRewriter(Function<Principal,Principal> postRealmRewriter)
Set a principal transformer to apply after the realm is selected.
|
MechanismConfiguration.Builder |
setPreRealmRewriter(Function<Principal,Principal> preRealmRewriter)
Set a principal transformer to apply before the realm is selected.
|
MechanismConfiguration.Builder |
setRealmMapper(RealmMapper realmMapper)
Sets a realm mapper to be used by the mechanism.
|
MechanismConfiguration.Builder |
setServerCredential(Credential credential)
Set a single server credential.
|
MechanismConfiguration.Builder |
setServerCredential(SecurityFactory<Credential> credentialFactory)
Set a single server credential factory.
|
MechanismConfiguration.Builder |
setServerCredentialSource(CredentialSource serverCredentialSource)
Set the server credential source.
|
public MechanismConfiguration.Builder setPreRealmRewriter(Function<Principal,Principal> preRealmRewriter)
preRealmRewriter
- a principal transformer to apply before the realm is selectedpublic MechanismConfiguration.Builder setPostRealmRewriter(Function<Principal,Principal> postRealmRewriter)
postRealmRewriter
- a principal transformer to apply after the realm is selectedpublic MechanismConfiguration.Builder setFinalRewriter(Function<Principal,Principal> finalRewriter)
finalRewriter
- a final principal transformer to apply for this mechanism realmpublic MechanismConfiguration.Builder setRealmMapper(RealmMapper realmMapper)
realmMapper
- a realm mapper to be used by the mechanismpublic MechanismConfiguration.Builder addMechanismRealm(MechanismRealmConfiguration configuration)
configuration
- a configuration for one of realms of this mechanismpublic MechanismConfiguration.Builder setServerCredential(Credential credential)
credential
- the credential to set (must not be null
)public MechanismConfiguration.Builder setServerCredential(SecurityFactory<Credential> credentialFactory)
credentialFactory
- the credential factory to set (must not be null
)public MechanismConfiguration.Builder setServerCredentialSource(CredentialSource serverCredentialSource)
serverCredentialSource
- the server credential source (must not be null
)public MechanismConfiguration build()
mechanismRealms
; otherwise, if the mechanism only supports one realm, the first will be used. If the
mechanism does not support realms, mechanismRealms
is ignored.Copyright © 2020 JBoss by Red Hat. All rights reserved.