Topic Options
Rate This Topic
#133490 - 03/15/06 01:35 PM ARServerUser / AccessNameID API
Anonymous
Unregistered


I was hoping someone here can hopefully provide me with some suggestion code or validate my theory.

I'm trying to access the password field in User form. Would it be possilbe to do this using a call to ARServerUser.getPassword() which will return an AccessNameID class and subsequently make a call to AccessNameID.toString() to grab the password.

I'm a newbie to JAVA so feel free to give me the smackdown if my theory is flawed.

Also, bear in mind that the Remedy support folks told me that the password field is encrypted.

Top
#133491 - 03/16/06 05:14 PM Re: ARServerUser / AccessNameID API [Re: Anonymous]
remoody Offline
Just Signed Up

Registered: 03/15/06
Posts: 1
Just in case anyone is interested, below is the responce from Remedy support:

-------------------------------------------

It will return a AccessNameID object which you can call toString() from to get the
password. For example:

If my ARServerUser object was called "context", you would use the following:

String pass = context.getPassword().toString();

Keep in mind, this is NOT pulling the User's password from the database (User form). This
is simply retrieving the password that was passed into the ARServerUser object (context)
constructor when it was created. So if the ARServerUser object was created as follows:

ARServerUser context = new ARServerUser("Demo", "pass", "", "terp");

Then the code above would return "pass". This may or may not be the correct password for
that user.

Top