public class CapabilityProviderHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLUMN_CAPABILITY_ID |
static java.lang.String |
COLUMN_HASH |
static java.lang.String |
COLUMN_PUBLIC_KEY |
static java.lang.String |
TAG |
Constructor and Description |
---|
CapabilityProviderHelper() |
Modifier and Type | Method and Description |
---|---|
static java.security.PublicKey |
getPublicKey(byte[] keyBytes) |
static java.security.PublicKey |
getPublicKey(java.lang.String key) |
static java.lang.String |
saveApplicationPublicKey(android.content.Context context,
co.poynt.api.model.Application application,
java.lang.String accessToken,
CapabilityProvider provider,
co.poynt.api.model.ProcessorResponse processorResponse) |
static CapabilityProviderKeyInfo |
savePublicKey(android.content.Context context,
int id,
java.lang.String hash,
java.lang.String publicKey) |
static boolean |
verify(java.security.PublicKey publicKey,
java.lang.String signedData,
java.lang.String clearData) |
static boolean |
verifyDiscount(CapabilityProvider provider,
co.poynt.api.model.Discount discount) |
static boolean |
verifyTransaction(CapabilityProvider provider,
co.poynt.api.model.Transaction transaction) |
public static final java.lang.String TAG
public static final java.lang.String COLUMN_HASH
public static final java.lang.String COLUMN_PUBLIC_KEY
public static final java.lang.String COLUMN_CAPABILITY_ID
public static CapabilityProviderKeyInfo savePublicKey(android.content.Context context, int id, java.lang.String hash, java.lang.String publicKey)
public static java.security.PublicKey getPublicKey(java.lang.String key)
public static java.security.PublicKey getPublicKey(byte[] keyBytes)
public static boolean verifyTransaction(CapabilityProvider provider, co.poynt.api.model.Transaction transaction)
public static boolean verifyDiscount(CapabilityProvider provider, co.poynt.api.model.Discount discount)
public static java.lang.String saveApplicationPublicKey(android.content.Context context, co.poynt.api.model.Application application, java.lang.String accessToken, CapabilityProvider provider, co.poynt.api.model.ProcessorResponse processorResponse)
public static boolean verify(java.security.PublicKey publicKey, java.lang.String signedData, java.lang.String clearData)