Skip to Content

Where to find .jar with KeystoreManager, InitialContext, PrivateKey classes on PO 7.31?

Sep 01, 2017 at 09:01 AM


avatar image

Hi guys,

I need to implement a UDF using private key with the code below, but am not able to get the .jar file with needed classes. Do you know where to find it on 7.31?


InitialContext ctx = ctx = new InitialContext(); 
Object o = (Object) ctx.lookup("keystore"); KeystoreManager manager = (KeystoreManager) o; keyStore = manager.getKeystore("DEFAULT");InitialContext context = new InitialContext();KeyStoreManager manager = (KeystoreManager) context.lookup("keystore");KeyStore keyStore = manager.getKeystore(keyStoreView);SsfProfileKeyStore profile = new SsfProfileKeyStore(keyStore, alias, null);PrivateKey key = profile.getPrivateKey(); sig = Signature.getInstance("SHA1withRSA");sig.initSign(key);
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers