Package com.sun.enterprise.security.cli
Class DeletePasswordAlias
java.lang.Object
com.sun.enterprise.security.cli.DeletePasswordAlias
- All Implemented Interfaces:
org.glassfish.api.admin.AdminCommand
,org.glassfish.api.admin.AdminCommandSecurity.Preauthorization
@Service(name="delete-password-alias")
@PerLookup
@ExecuteOn(ALL)
@TargetType({DAS,DOMAIN})
public class DeletePasswordAlias
extends Object
implements org.glassfish.api.admin.AdminCommand, org.glassfish.api.admin.AdminCommandSecurity.Preauthorization
Delete Password Alias Command
Usage: delete-password-alias [--terse=false] [--echo=false] [--interactive=true] [--host localhost] [--port 4848|4849]
[--secure | -s] [--user admin_user] [--passwordfile file_name] aliasname
Result of the command is that: The entry of the form: aliasname=<password-encrypted-with-masterpassword> in
<domain-dir>/<domain-name>/config/domain-passwords file is removed
domain.xml example entry is:
<provider-config class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule" provider-id="XWS_ClientProvider" provider-type
="client"> <property name="password" value="${ALIAS=myalias}/> </provider-config>
- Author:
- Nandini Ektare
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.glassfish.api.admin.AdminCommandContext context) Executes the command with the command parameters passed as Properties where the keys are paramter names and the values the parameter valuesboolean
preAuthorization
(org.glassfish.api.admin.AdminCommandContext context)
-
Constructor Details
-
DeletePasswordAlias
public DeletePasswordAlias()
-
-
Method Details
-
preAuthorization
public boolean preAuthorization(org.glassfish.api.admin.AdminCommandContext context) - Specified by:
preAuthorization
in interfaceorg.glassfish.api.admin.AdminCommandSecurity.Preauthorization
-
execute
public void execute(org.glassfish.api.admin.AdminCommandContext context) Executes the command with the command parameters passed as Properties where the keys are paramter names and the values the parameter values- Specified by:
execute
in interfaceorg.glassfish.api.admin.AdminCommand
- Parameters:
context
- information
-