I am trying to check if a particular certificate is trusted in a keystore. I have created a keystore called trust.truststore and in there i have the root and issuing CA certificates as trusted entries. I have loaded this keystore as a java.security.KeyStore.
I then have an X509Certificate object which has the public key of a certificate issued by the issuing CA. This X509Certificate is the certificate that i want to check is trusted using the trusted entries in the KeyStore object.
Does anyone know how to check this or could start me off in the right direction ???