Solved

WAS 61 - Base64 Encoder

Posted on 2010-11-09
6
2,409 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

732 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