Skip to Content
author's profile photo Former Member
Former Member

Access the J2EE Engine Keystore

hi SDN,

I am trying to access the J2EE Engine Keystore with the following set of codes

KeyStore keyStore=null;

InitialContext ctx = new InitialContext();
Object obj = (Object) ctx.lookup("keystore");
KeystoreManager manager = (KeystoreManager) obj;
keyStore = manager.getKeystore("DEFAULT");
String alias = "verify_test";
SsfProfileKeyStore profile = new SsfProfileKeyStore(keyStore, alias, null);
String SubjectDN = profile.getCertificate().getSubjectDN().getName();
response.write("SubjectDN"+SubjectDN);

But this particular line of code

KeystoreManager manager = (KeystoreManager) obj;

is not getting executed...

Could anyone tell me as to why it is not executing...Any corrections to be done?

Thanks & Regards,

p188071

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 31, 2009 at 08:43 AM

    p188071,

    Please check these pages.

    They may be of some help...

    http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/security/lib/KeyStoreManager.html

    get-a-keystore-from-ejb-sessionbean

    Regards,

    Ritu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.