diff options
author | Shawn Severin <shawn.severin@amdocs.com> | 2017-12-11 15:42:52 -0500 |
---|---|---|
committer | Shawn Severin <shawn.severin@amdocs.com> | 2017-12-11 15:43:42 -0500 |
commit | 7b42006c51d4f014f72ae39170544a85d2f09fb5 (patch) | |
tree | 9dc8c0f56d7b85e843f7f29bae7c9207b118bd18 /src/main/scripts/encNameValue.sh | |
parent | 1249ee87c69c9c4566f2c52c5cbb56e4089044c4 (diff) |
Adding UI extensibility
Adding the ability for Sparky developers to create their own custom
front-end views
Issue-ID: AAI-542
Change-Id: I83f9608639799e3bf85b654f44a0a7a5a85ad264
Signed-off-by: Shawn Severin <shawn.severin@amdocs.com>
Diffstat (limited to 'src/main/scripts/encNameValue.sh')
-rw-r--r-- | src/main/scripts/encNameValue.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/scripts/encNameValue.sh b/src/main/scripts/encNameValue.sh new file mode 100644 index 0000000..daefd00 --- /dev/null +++ b/src/main/scripts/encNameValue.sh @@ -0,0 +1,20 @@ +# The script invokes the com.amdocs.aai.audit.security.encryption.EncryptedPropValue class to generate an encrypted value +# e.g +# ./encNameValue.sh odl.auth.password admin +# will return: +# odl.auth.password.x=f1e2c25183ef4b4ff655e7cd94d0c472 +# +if [ "$#" -ne 2 ]; then + echo "Illegal number of parameters (expected 2)" + echo "Usage: `basename $0` <property name> <property value>" 1>&2 + exit 1 +fi + +# On Windows we must use a different CLASSPATH separator character +if [ "$(expr substr $(uname -s) 1 5)" == "MINGW" ]; then + CPSEP=\; +else + CPSEP=: +fi + +java -cp ".${CPSEP}../extJars/*" com.att.aai.util.EncryptedPropValue -n $1 -v $2 |