Code example for X509Certificate

Methods: getExtensionValue

0
    private String  fullNameCDP, aiaLocation;
     
 
	public 	CertInfo(X509Certificate cert){
    	mX509Cert = cert;
    	byte[] cdp = cert.getExtensionValue("2.5.29.31");
    	 
    	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;
    	    }else{ 
Connect your IDE to all the code out there  Get Codota for Java