public static AuthenticationData createAuthenticationData(String userName, String password) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.entry(tc, CLASS_NAME + "createAuthenticationData", new Object[] { userName, "Password Not Traced" });
        }
        AuthenticationData authData = new WSAuthenticationData();
        if (userName == null)
            userName = "";
        if (password == null)
            password = "";
        authData.set(AuthenticationData.USERNAME, userName);
        authData.set(AuthenticationData.PASSWORD, new ProtectedString(password.toCharArray()));
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.exit(tc, CLASS_NAME + "createAuthenticationData", authData);
        }
        return authData;
    }
public static AuthenticationData createAuthenticationData ( String userName , String password ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "createAuthenticationData" , new Object [ ] { userName , "Password Not Traced" } ) ; } AuthenticationData authData = new WSAuthenticationData ( ) ; if ( userName == null ) userName = "" ; if ( password == null ) password = "" ; authData . set ( AuthenticationData . USERNAME , userName ) ; authData . set ( AuthenticationData . PASSWORD , new ProtectedString ( password . toCharArray ( ) ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . exit ( tc , CLASS_NAME + "createAuthenticationData" , authData ) ; } return authData ; }
Create AuthenticationData Object from the UserName and Password passed

@param userName
@param password
@return