code: public static X509Certificate readCertificate(final byte[] decoded) throws CertificateException
  	{
  		final CertificateFactory certificateFactory = CertificateFactory.getInstance("X.509");
  		final InputStream inputStream = new ByteArrayInputStream(decoded);
  		final X509Certificate certificate = (X509Certificate)certificateFactory
  			.generateCertificate(inputStream);
  		return certificate;
  	}
docs: Reads the given byte array and tries to create a {@link X509Certificate} object.
  
  @param decoded
  the decoded
  @return the {@link X509Certificate} object from the given byte array.
  
  @throws CertificateException
  is thrown if no Provider supports a CertificateFactorySpi implementation for the
  specified type.