2.25.2 delete-message-security-provider
Deletes a message security provider. This option is used by administrators.
Synopsis
asadmin [asadmin-options] delete-message-security-provider [--help] [--target target] --layer message_layer provider_name
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The delete-message-security-provider subcommand enables administrators to delete a message security provider. In terms of what happens when this subcommand is run, the provider-config sub-element for the given message layer (message-security-config element of domain.xml is deleted. The domain.xml file specifies parameters and properties to Java EE Server). The options specified in the list below apply to attributes within the message-security-config and provider-config sub-elements of the domain.xml file. If the message-layer (message-security-config attribute) does not exist, it is created, and then the provider-config is created under it.
This command is supported in remote mode only.
Precondition
Domain Administration Server (DAS) is running.
Files
When delete-message-security-provider subcommand is run, the provider-config sub-element for the given message layer (message-security-config element of domain.xml is deleted. The domain.xml file specifies parameters and properties to Java EE Server). The options specified in the list below apply to attributes within the message-security-config and provider-config sub-elements of the domain.xml file.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --target target
-
Specifies the target from which you are deleting the message security provider.
Type: String
The following values can be specified:
-
server
Deletes the message security provider from the default server instance server and is the default value.
-
domain
Deletes the message security provider from the domain.
-
cluster_name
Deletes the message security provider from every server instance in the cluster.
-
instance_name
Deletes the message security provider from a particular sever instance.
Default value: server
-
- --layer message_layer
-
Specifies the message layer from which the provider has to be deleted.
Type: String
The following values can be specified:
-
HttpServlet
-
SOAP
Default value: HttpServlet
-
- provider_name
-
Specifies the name of the provider used to reference the provider-config element.
Type: String
The following values can be specified:
-
Name of the provider
Default value: N/A
-
Examples
The following example shows how to delete a message security provider for a client on the server instance instance1.
asadmin delete-message-security-provider --target instance1 --layer SOAP mySecurityProvider
Exit Status
Exit Status |
Explanation |
---|---|
0 |
command executed successfully. |
1 |
error in executing the command. |