Skip to Content
0

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

Sep 01, 2017 at 09:01 AM

18

avatar image
Former Member

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?
Thanks,

Peter

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();java.security.Signature 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