Package org.jboss.hal.core.elytron
Class CredentialReference
- java.lang.Object
-
- org.jboss.hal.core.elytron.CredentialReference
-
public class CredentialReference extends Object
Provides building blocks for dealing with thecredential-referencecomplex attribute used in several resources across subsystems.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCredentialReference.AlternativeValidation<T extends ModelNode>Form validation which validates that only one ofcredential-referenceand<alternativeName>is given.static classCredentialReference.CrFormValuesValidationWhen adding or updating the credential-reference, we need to follow the following rules: either 'clear-text' must be specified on its own, or 'store' needs to be specified with at least one of 'clear-text' or 'alias' See also https://docs.wildfly.org/25/WildFly_Elytron_Security.html#automatic-updates-of-credential-stores
-
Field Summary
Fields Modifier and Type Field Description static String[]ATTRIBUTESstatic String[]ATTRIBUTES_PREFIXED
-
Constructor Summary
Constructors Constructor Description CredentialReference(com.google.web.bindery.event.shared.EventBus eventBus, Dispatcher dispatcher, ComplexAttributeOperations ca, Resources resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Form<ModelNode>form(String baseId, Metadata metadata, String crName, String alternativeName, Supplier<String> alternativeValue, Supplier<Operation> ping, Supplier<ResourceAddress> address, Callback emptyAction, Callback callback)Creates a form for thecredential-referencecomplex attribute of a resource.Form<ModelNode>form(String baseId, Metadata metadata, String crName, String alternativeName, Supplier<String> alternativeValue, Supplier<ResourceAddress> address, Callback callback)Form<ModelNode>form(String baseId, Metadata metadata, String alternativeName, Supplier<String> alternativeValue, Supplier<ResourceAddress> address, Callback callback)Creates a form for thecredential-referencecomplex attribute of a resource.
-
-
-
Constructor Detail
-
CredentialReference
@Inject public CredentialReference(com.google.web.bindery.event.shared.EventBus eventBus, Dispatcher dispatcher, ComplexAttributeOperations ca, Resources resources)
-
-
Method Detail
-
form
public Form<ModelNode> form(String baseId, Metadata metadata, String alternativeName, Supplier<String> alternativeValue, Supplier<ResourceAddress> address, Callback callback)
Creates a form for thecredential-referencecomplex attribute of a resource. The form is setup as a singleton form to add, save, reset and remove the complex attribute.- Parameters:
baseId- base ID used for the generated form and add resource dialogmetadata- the metadata of the resource which contains thecredential-referenceattributealternativeName- the name of the alternative attributealternativeValue- the value of the alternative attributeaddress- the fully qualified address of the resource used for the CRUD actionscallback- the callback executed after thecredential-referenceattributes has been added, saved, reset or removed
-
form
public Form<ModelNode> form(String baseId, Metadata metadata, String crName, String alternativeName, Supplier<String> alternativeValue, Supplier<ResourceAddress> address, Callback callback)
-
form
public Form<ModelNode> form(String baseId, Metadata metadata, String crName, String alternativeName, Supplier<String> alternativeValue, Supplier<Operation> ping, Supplier<ResourceAddress> address, Callback emptyAction, Callback callback)
Creates a form for thecredential-referencecomplex attribute of a resource. The form is setup as a singleton form to add, save, reset and remove the complex attribute.- Parameters:
baseId- base ID used for the generated form and add resource dialogmetadata- the metadata of the resource which contains thecredential-referenceattributecrName- the name of the credential-reference complex attributealternativeName- the name of the alternative attributealternativeValue- the value of the alternative attributeping- the operation to check the presence of the credential referenceaddress- the fully qualified address of the resource used for the CRUD actionsemptyAction- the action to perform to add a credential reference from an empty statecallback- the callback executed after thecredential-referenceattributes has been added, saved, reset or removed
-
-