Package | Description |
---|---|
org.bitcoinj.protocols.payments |
The BIP70 payment protocol wraps Bitcoin transactions and adds various useful features like memos, refund addresses
and authentication.
|
Modifier and Type | Class and Description |
---|---|
static class |
PaymentProtocolException.Expired |
static class |
PaymentProtocolException.InvalidNetwork |
static class |
PaymentProtocolException.InvalidOutputs |
static class |
PaymentProtocolException.InvalidPaymentRequestURL |
static class |
PaymentProtocolException.InvalidPaymentURL |
static class |
PaymentProtocolException.InvalidPkiData |
static class |
PaymentProtocolException.InvalidPkiType |
static class |
PaymentProtocolException.InvalidVersion |
static class |
PaymentProtocolException.PkiVerificationException |
Modifier and Type | Method and Description |
---|---|
static ListenableFuture<PaymentSession> |
PaymentSession.createFromBitcoinUri(BitcoinURI uri)
Returns a future that will be notified with a PaymentSession object after it is fetched using the provided uri.
|
static ListenableFuture<PaymentSession> |
PaymentSession.createFromBitcoinUri(BitcoinURI uri,
boolean verifyPki)
Returns a future that will be notified with a PaymentSession object after it is fetched using the provided uri.
|
static ListenableFuture<PaymentSession> |
PaymentSession.createFromBitcoinUri(BitcoinURI uri,
boolean verifyPki,
TrustStoreLoader trustStoreLoader)
Returns a future that will be notified with a PaymentSession object after it is fetched using the provided uri.
|
static ListenableFuture<PaymentSession> |
PaymentSession.createFromUrl(String url)
Returns a future that will be notified with a PaymentSession object after it is fetched using the provided url.
|
static ListenableFuture<PaymentSession> |
PaymentSession.createFromUrl(String url,
boolean verifyPki)
Returns a future that will be notified with a PaymentSession object after it is fetched using the provided url.
|
static ListenableFuture<PaymentSession> |
PaymentSession.createFromUrl(String url,
boolean verifyPki,
TrustStoreLoader trustStoreLoader)
Returns a future that will be notified with a PaymentSession object after it is fetched using the provided url.
|
static PaymentSession |
PaymentProtocol.parsePaymentRequest(Protos.PaymentRequest paymentRequest)
Parse a payment request.
|
ListenableFuture<PaymentProtocol.Ack> |
PaymentSession.sendPayment(List<Transaction> txns,
Address refundAddr,
String memo)
Generates a Payment message and sends the payment to the merchant who sent the PaymentRequest.
|
static PaymentProtocol.PkiVerificationData |
PaymentProtocol.verifyPaymentRequestPki(Protos.PaymentRequest paymentRequest,
KeyStore trustStore)
Uses the provided PKI method to find the corresponding public key and verify the provided signature.
|
Constructor and Description |
---|
PaymentSession(Protos.PaymentRequest request)
Creates a PaymentSession from the provided
Protos.PaymentRequest . |
PaymentSession(Protos.PaymentRequest request,
boolean verifyPki)
Creates a PaymentSession from the provided
Protos.PaymentRequest . |
PaymentSession(Protos.PaymentRequest request,
boolean verifyPki,
TrustStoreLoader trustStoreLoader)
Creates a PaymentSession from the provided
Protos.PaymentRequest . |
Copyright © 2016. All rights reserved.