Package com.alibaba.dashscope.transport
Class EncryptionConfig
java.lang.Object
com.alibaba.dashscope.transport.EncryptionConfig
One-shot encryption material for a single encrypted-channel request (J7): server public key +
freshly generated AES key + IV.
keyHeader() renders the
X-DashScope-EncryptionKey header value.-
Constructor Summary
ConstructorsConstructorDescriptionEncryptionConfig(String publicKeyId, String base64PublicKey, SecretKey aesKey, byte[] iv) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getIv()JSON value forX-DashScope-EncryptionKey, matching the 2.x wire contract.
-
Constructor Details
-
EncryptionConfig
-
-
Method Details
-
getPublicKeyId
-
getBase64PublicKey
-
getAesKey
-
getIv
public byte[] getIv() -
keyHeader
JSON value forX-DashScope-EncryptionKey, matching the 2.x wire contract.
-