How to mangle and unmangle passwords using the EMS Admin API.

How to mangle and unmangle passwords using the EMS Admin API.

book

Article ID: KB0094093

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Description:
Since EMS version 8.1, the EMS Java Admin library provides mangle and unmangle password APIs.
Symptoms:
N/A
Cause:
N/A

Issue/Introduction

How to mangle and unmangle passwords using the EMS Admin API.

Resolution

The mangle and unmangle password APIs are provided in the EMS Java admin library beginning with version 8.1.
  • manglePassword

    public static java.lang.String manglePassword(java.lang.String password)
                                           throws TibjmsAdminException
    Mangles a password for use with EMS.

    If the password is null or is already mangled, nothing is done.

    Parameters:
    password - the password to mangle
    Returns:
    mangled password
    Throws:
    TibjmsAdminException - if an error has occurred.
    Since:
    EMS 8.1.0
    See Also:
    unmanglePassword(String)
  • unmanglePassword

    public static java.lang.String unmanglePassword(java.lang.String mangledPassword)
                                             throws TibjmsAdminException
    Unmangles a password mangled by EMS.

    If the password is not mangled or is null then the original password is returned.

    Parameters:
    password - the password to unmangle.
    Returns:
    the unmangled password.
    Throws:
    TibjmsAdminException - if an error has occurred.
    Since:
    EMS 8.1.0
    See Also:
    manglePassword(String)

Attached is a Java program (Filename: tibemsadmin_unmangle.java) that demonstrates how to unmangle a password.

Additional Information

EMS admin API reference

Attachments

How to mangle and unmangle passwords using the EMS Admin API. get_app