public class Credential extends Object
| Constructor and Description |
|---|
Credential(String publicKey,
String privateKey)
Credential constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
formatBytes2HexString(byte[] data) |
String |
getPrivateKey() |
String |
getPublicKey() |
void |
setPrivateKey(String privateKey) |
void |
setPublicKey(String publicKey) |
Request |
sign(Request request) |
String |
verifyAc(Request request) |
public String verifyAc(Request request) throws UCloudException
UCloudExceptionpublic Request sign(Request request) throws UCloudException
UCloudExceptionpublic String getPrivateKey()
public void setPrivateKey(String privateKey)
public String getPublicKey()
public void setPublicKey(String publicKey)
public String formatBytes2HexString(byte[] data)
Copyright © 2024. All rights reserved.