Solved

WAS 61 - Base64 Encoder

Posted on 2010-11-09
6
2,340 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Script to start/stop Weblogic 11, 12 6 137
method reurn 7 83
Java Exception example issues 11 83
Java Email Transport Not working 14 95
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now