cancel
Showing results for 
Search instead for 
Did you mean: 

Access the J2EE Engine Keystore

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Regards,

Ritu

Former Member
0 Kudos

Dear All,

Resolved when I used the following

KeystoreManagerWrapper_Stub manager = (KeystoreManagerWrapper_Stub) ctx.lookup("keystore");

Regards,

p188071

Answers (0)