Yes... need to fix that.. return (PublicKey) primaryKeyStore.getCertificate(alias).getPublicKey(); should be replaced as,
return (PublicKey) getPrimaryKeyStore().getCertificate(alias).getPublicKey(); Thanks & regards, -Prabath On Fri, Oct 3, 2014 at 9:33 PM, Danushka Fernando <danush...@wso2.com> wrote: > Hi All > I noticed that if I call the method in $subject without calling > KeyStoreManager.getDefaultPrimaryCertificate() its throwing a null pointer. > Is this a bug or the expected behavior. AFAIU when we call $subject it > should internally load the default primary cert. Correct me if I am wrong. > > > Thanks & Regards > Danushka Fernando > Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 -- Thanks & Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +94 71 809 6732 http://blog.facilelogin.com http://blog.api-security.org _______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev