code: public static X509Certificate decodeCertificate(byte[] certificateBytes) throws UaException {
          Preconditions.checkNotNull(certificateBytes, "certificateBytes cannot be null");
  
          return decodeCertificate(new ByteArrayInputStream(certificateBytes));
      }
docs: Decode a DER-encoded X.509 certificate.
  
  @param certificateBytes DER-encoded certificate bytes.
  @return an {@link X509Certificate}
  @throws UaException if decoding the certificate fails.