public class RequestSigner extends Object
| Constructor and Description |
|---|
RequestSigner(Crypto crypto)
Create a new instance of
RequestSigner |
| Modifier and Type | Method and Description |
|---|---|
void |
authoritySign(SignedRequest request,
String appdId,
PrivateKey appKey)
Sign request with authority key.
|
void |
selfSign(SignedRequest request,
PrivateKey privateKey)
Sign request with a key.
|
public RequestSigner(Crypto crypto)
RequestSignercrypto - the crypto.public void selfSign(SignedRequest request, PrivateKey privateKey)
request - the request to be signed.privateKey - the private key.public void authoritySign(SignedRequest request, String appdId, PrivateKey appKey)
request - the request to be signed.appdId - the application id.appKey - the application key.Copyright © 2016. All rights reserved.