Re: [EXTERNAL] Re: AS400 Object
Jim Oberholtzer <midrangel-zbO79nAUJZvJTQUaaPvyeQC/[email protected]> Tue, 20 Aug 2024 09:43:24 -0500
| Newsgroups | gmane.comp.lang.as400.java |
|---|---|
| Message-ID | <CA+bGXzHvpvAw2Q+4UzbwnCXvPSoLnkDHUhuEEkA8Vbcboq-Vxg@mail.gmail.com> |
Maybe I'm dense (probably so) but if the user calling this function has an IBM i profile and is creating a new one, then the user calling the function should be able to provide a valid password the API could validate. The Java Project as I quickly looked at it, stores and retrieves environment variables. Cool, yes, but to store a password that enables one to create other user profiles, I wonder about the wisdom of that . -- Jim Oberholtzer Chief Technical Architect Agile Technology Architects On Tue, Aug 20, 2024 at 9:29 AM Jack Woehr via JAVA400-L < [email protected]> wrote: > Check out the dotenv-java project https://github.com/cdimascio/dotenv-java > > > ________________________________ > From: JAVA400-L <[email protected]> on behalf of Nair, > Dilip <[email protected]> > Sent: Tuesday, August 20, 2024 8:24 AM > To: Java Programming on and around the IBM i <[email protected] > > > Subject: RE: [EXTERNAL] Re: AS400 Object > > [You don't often get email from [email protected]. Learn why > this is important at https://aka.ms/LearnAboutSenderIdentification ] > > CAUTION: This email originated from outside of the organization. Do not > click links or open attachments unless you recognize the sender and know > the content is safe. > > Thanks for the quick response > > We would like to secure the password used to create the AS400 object. > This is what we do > AS400 sys = new AS400(system , genericuser ,password) > > Sys.validatesignon(username , userpassword) > > Password for the creating the sys object is hardcoded and would like to > take it off the code.. > > Dilip Nair > -- > This is the Java Programming on and around the IBM i (JAVA400-L) mailing > list > To post a message email: [email protected] > To subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/java400-l > or email: [email protected] > Before posting, please take a moment to review the archives > at https://archive.midrange.com/java400-l. > -- This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/java400-l or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/java400-l.