Solved

WAS 61 - Base64 Encoder

Posted on 2010-11-09
6
2,376 Views
Last Modified: 2013-12-10
Hi,

I want to implement a small login module using the Base 64 Encoder that comes with WAS library.

I have seen the fully qualified class name for Base 64 Encoder in PropertyPasswordEncoder.bat in profile\bin folder.

But I am not sure in which jar file under AppServer\lib the class is located.

I request WebSphere experts to provide inputs on this.

Thanks,
Rishi
0
Comment
Question by:RishiBang
  • 4
6 Comments
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 34105502
I presume that you mean: PropFilePasswordEncoder.bat

Looking...

This is not quite as simple as I once though...
0
 
LVL 41

Assisted Solution

by:HonorGod
HonorGod earned 500 total points
ID: 34106152
I thought that it might be as simple as making a copy of the PropFilePasswordEncoder.bat file, and adding the -verbose Java command line property to the Java invocation to execute the execution of the Java command.  Unfortunately, it calls the launcher which is used to start a second JVM.

So, I had to be a bit more thorough, and wrote the following Python script to locate the files containing the following jar files contain com/ibm/ws/security/util/PropFilePasswordEncoder.class

--------------------------------------------------
.\deploytool\itp\plugins\com.ibm.websphere.v61_6.1.100\ws_runtime.jar
.\deploytool\itp\plugins\com.ibm.websphere.v61_6.1.200\ws_runtime.jar
.\plugins\com.ibm.ws.runtime_6.1.0.jar
.\runtimes\com.ibm.ws.admin.client_6.1.0.jar
.\runtimes\com.ibm.ws.webservices.thinclient_6.1.0.jar
--------------------------------------------------

btw, it took a long time to run on my machine because of the number of jar files to be processed.
I guess I need faster hardware. ;-)

Note: It needs / uses "grep"
import os, os.path;

jar = r'.\java\bin\jar';

def main() :
  for root, dirs, files in os.walk( '.' ) :
    for name in files :
      if name.endswith( '.jar' ) :
        result = os.system( jar + ' tf ' + os.path.join( root, name ) + ' | grep PropFilePasswordEncoder >grep.out' );
        if os.path.getsize( 'grep.out' ) > 0 :
          print( os.path.join( root, name ) );


if __name__ == '__main__' :
  main();

Open in new window

0
 

Author Comment

by:RishiBang
ID: 34131132
Hi HornorGod,

I am able to finish my login application with PasswordUtil class in the jar files you have provided the path

Thanks,
Rishi
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34135824
Rishi:

  That sounds like I answered your question.  Is that correct?  Is there anything else that is needed for this question?

Thanks
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34148523
Thanks for the grade & points.

I'm glad that I was able to help.

Good luck & have a great day.
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get rid of Java update popups 6 225
classpath 4 120
Multi-threading in Tomcat 4 175
Safari, Firefox, IE, Java, Plugin, Java Security error 13 64
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question