Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

WAS 61 - Base64 Encoder

Posted on 2010-11-09
6
Medium Priority
?
2,494 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 2000 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
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.…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Screencast - Getting to Know the Pipeline
Suggested Courses

916 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