Code example for X509Certificate

Methods: getExtensionValue

    private String  fullNameCDP, aiaLocation;
	public 	CertInfo(X509Certificate cert){
    	mX509Cert = cert;
    	byte[] cdp = cert.getExtensionValue("");
    	if(cdp != null){
    		String str;
            try { 
                str = new String(cdp, "US-ASCII");
            } catch (UnsupportedEncodingException e) {
                throw new IllegalStateException(e.toString());
            //if(DEBUG) Log.d(TAG,"Str:"+str); 
    	    int i = str.indexOf("http");
    	    if( i != -1){
    			httpCDP = true;
    			ldapCDP = false;
Connect your IDE to all the code out there  Get Codota for Java