Protos$PaymentRequest.parseFrom
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.bitcoin.protocols.payments.Protos$PaymentRequest.parseFrom(Showing top 9 results out of 315)

origin: bitcoinj/bitcoinj

if (arg.startsWith("/")) {
  FileInputStream stream = new FileInputStream(arg);
  Protos.PaymentRequest request = Protos.PaymentRequest.parseFrom(stream);
  stream.close();
  session = new PaymentSession(request);
origin: org.bitcoinj/bitcoinj-core

  @Override
  public PaymentSession call() throws Exception {
    HttpURLConnection connection = (HttpURLConnection)uri.toURL().openConnection();
    connection.setRequestProperty("Accept", PaymentProtocol.MIMETYPE_PAYMENTREQUEST);
    connection.setUseCaches(false);
    Protos.PaymentRequest paymentRequest = Protos.PaymentRequest.parseFrom(connection.getInputStream());
    return new PaymentSession(paymentRequest, verifyPki, trustStoreLoader);
  }
});
origin: com.google/bitcoinj

  @Override
  public PaymentSession call() throws Exception {
    HttpURLConnection connection = (HttpURLConnection)uri.toURL().openConnection();
    connection.setRequestProperty("Accept", "application/bitcoin-paymentrequest");
    connection.setUseCaches(false);
    Protos.PaymentRequest paymentRequest = Protos.PaymentRequest.parseFrom(connection.getInputStream());
    return new PaymentSession(paymentRequest, verifyPki, trustStorePath);
  }
});
origin: Multibit-Legacy/multibit-hd

  @Override
  public boolean isValidDecryption(InputStream inputStream) throws IOException {
    try{
      Protos.PaymentRequest.parseFrom(inputStream);
      return true;
    }

    catch(InvalidProtocolBufferException ex){
      return false;
    }
  }
}
origin: Multibit-Legacy/multibit-hd

Optional<Protos.PaymentRequest> paymentRequest = Optional.of(Protos.PaymentRequest.parseFrom(serialisedBytes));
paymentRequestData.setPaymentRequest(paymentRequest);
origin: Multibit-Legacy/multibit-hd

log.debug("Treating as file based resource");
byte[] paymentRequestBytes = Resources.toByteArray(paymentRequestUri.toURL());
paymentRequest = Protos.PaymentRequest.parseFrom(paymentRequestBytes);
paymentSession = new PaymentSession(paymentRequest, checkPKI, trustStoreLoader);
log.debug("Treating as classpath based resource");
InputStream inputStream = PaymentProtocolService.class.getResourceAsStream(paymentRequestUri.toString());
paymentRequest = Protos.PaymentRequest.parseFrom(inputStream);
paymentSession = new PaymentSession(paymentRequest, checkPKI, trustStoreLoader);
origin: org.bitcoinj/bitcoinj-core

  @Override
  public PaymentSession call() throws Exception {
    HttpURLConnection connection = (HttpURLConnection)uri.toURL().openConnection();
    connection.setRequestProperty("Accept", PaymentProtocol.MIMETYPE_PAYMENTREQUEST);
    connection.setUseCaches(false);
    Protos.PaymentRequest paymentRequest = Protos.PaymentRequest.parseFrom(connection.getInputStream());
    return new PaymentSession(paymentRequest, verifyPki, trustStoreLoader);
  }
});
origin: greenaddress/GreenBits

  @Override
  public PaymentSession call() throws Exception {
    HttpURLConnection connection = (HttpURLConnection)uri.toURL().openConnection();
    connection.setRequestProperty("Accept", PaymentProtocol.MIMETYPE_PAYMENTREQUEST);
    connection.setUseCaches(false);
    Protos.PaymentRequest paymentRequest = Protos.PaymentRequest.parseFrom(connection.getInputStream());
    return new PaymentSession(paymentRequest, verifyPki, trustStoreLoader);
  }
});
origin: greenaddress/GreenBits

if (arg.startsWith("/")) {
  FileInputStream stream = new FileInputStream(arg);
  Protos.PaymentRequest request = Protos.PaymentRequest.parseFrom(stream);
  stream.close();
  session = new PaymentSession(request);
org.bitcoin.protocols.paymentsProtos$PaymentRequestparseFrom

Popular methods of Protos$PaymentRequest

  • getPaymentDetailsVersion
    optional uint32 payment_details_version = 1 [default = 1];
  • getSerializedPaymentDetails
    required bytes serialized_payment_details = 4; PaymentDetails
  • newBuilder
  • toByteArray
  • <init>
  • getDefaultInstance
  • getPkiData
    optional bytes pki_data = 3; depends on pki_type
  • getPkiType
    optional string pki_type = 2 [default = "none"]; none / x509+sha256 / x509+sha1
  • getPkiTypeBytes
    optional string pki_type = 2 [default = "none"]; none / x509+sha256 / x509+sha1
  • getSerializedSize
  • getSignature
    optional bytes signature = 5; pki-dependent signature
  • getUnknownFields
  • getSignature,
  • getUnknownFields,
  • hasPaymentDetailsVersion,
  • hasPkiData,
  • hasPkiType,
  • hasSerializedPaymentDetails,
  • hasSignature,
  • initFields,
  • isInitialized

Popular classes and methods

  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JButton (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)