public class CryptUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.security.KeyFactory |
EC_KEYFACTORY |
static java.security.KeyFactory |
RSA_KEYFACTORY |
| Constructor and Description |
|---|
CryptUtil() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.gson.JsonObject |
getProofKey(java.security.interfaces.ECPublicKey publicKey) |
static org.apache.http.message.BasicHeader |
getSignatureHeader(org.apache.http.client.methods.HttpUriRequest httpRequest,
java.security.interfaces.ECPrivateKey privateKey) |
public static final java.security.KeyFactory RSA_KEYFACTORY
public static final java.security.KeyFactory EC_KEYFACTORY
public static org.apache.http.message.BasicHeader getSignatureHeader(org.apache.http.client.methods.HttpUriRequest httpRequest,
java.security.interfaces.ECPrivateKey privateKey)
throws java.io.IOException,
java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException,
java.security.SignatureException
java.io.IOExceptionjava.security.NoSuchAlgorithmExceptionjava.security.InvalidKeyExceptionjava.security.SignatureExceptionpublic static com.google.gson.JsonObject getProofKey(java.security.interfaces.ECPublicKey publicKey)