Code example for X509Certificate

Methods: getEncoded

        dir.setReadable(true, false);
        dir.setExecutable(true, false);
        OutputStream os = null;
        try { 
            os = new FileOutputStream(file);
        } finally { 
        file.setReadable(true, false);
    private boolean isDeletedSystemCertificate(X509Certificate x) {
        return getCertificateFile(deletedDir, x).exists();
    public Date getCreationDate(String alias) {
        // containsAlias check ensures the later fileForAlias result 
        // was not a deleted system cert. 
        if (!containsAlias(alias)) {
Stop searching for code, let great code find you!  Add Codota to your java IDE