Solved

WAS 61 - Base64 Encoder

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Working knowledge on Innopac Library System 2 190
how to add # symbol between day week month in java 21 148
Session migration 1 110
monitor tomcat use Zabbix 1 454
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

762 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