Code example for X509Certificate

Methods: getPublicKey

0
    { 
        try 
        { 
            if (privKey==null)
            { 
                sig.initVerify(signCert.getPublicKey());
            } 
            else 
            { 
                sig.initSign(privKey);
            } 
        } 
        catch (Exception e)
        { 
            throw new RuntimeException(e.toString());
        } 
    } 
 
    /** 
     * Get the X.509 certificates associated with this PKCS#7 object 
     */