2.9.5 create-password-alias
Creates a password alias.
Synopsis
asadmin [asadmin-options] create-password-alias [--help] aliasname
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The create-password-alias subcommand creates an alias for a password. An alias is a token of the form ${ALIAS=aliasname}. The password that corresponds to the alias name is stored in an encrypted form.
This command can be run interactively or non-interactively.
-
When run interactively, the command prompts the user for the alias password and to confirm the alias password.
-
When run non-interactively, the command reads the alias password from a file that is passed through the --passwordfile option of the asadmin utility. The file must contain an entry of the form AS_ADMIN_ALIASPASSWORD=alias-password, where alias-password is the alias password. The non-interactive form of this command is suitable for use in scripts. This command is supported in remote mode only.
Precondition
DAS has to be in a running state.
Files
The subcommand reads the alias password from a file that is passed through the --passwordfile option. The file must contain an entry of the form AS_ADMIN_ALIASPASSWORD=alias-password, where alias-password is the alias password.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- aliasname
-
Indicates your choice of name for the password alias.
Type: String
The following values can be specified:
-
Specify the password
Default value: N/A
-
Examples
The following example creates a password alias interactively.
asadmin create-password-alias jmspassword-alias
Exit Status
Exit Status |
Explanation |
---|---|
0 |
command executed successfully. |
1 |
error in executing the command. |
Notes
Restart the DAS after creating the alias for the changes to take effect.