public class EcRsaOaepAsyncWorker extends Object
| Constructor and Description |
|---|
EcRsaOaepAsyncWorker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
decrypt(EcPpk ppk,
String ciphertext,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Asynchronous form of {{#crossLink
"EcRsaOaep/decrypt:method"}}EcRsaOaep.decrypt{{/crossLink}}
|
static void |
encrypt(EcPk pk,
String plaintext,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Asynchronous form of {{#crossLink
"EcRsaOaep/encrypt:method"}}EcRsaOaep.encrypt{{/crossLink}}
|
static void |
initWorker() |
static void |
sign(EcPpk ppk,
String text,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Asynchronous form of {{#crossLink
"EcRsaOaep/sign:method"}}EcRsaOaep.sign{{/crossLink}}
|
static void |
signSha256(EcPpk ppk,
String text,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
Asynchronous form of {{#crossLink
"EcRsaOaep/signSha256:method"}}EcRsaOaep.signSha256{{/crossLink}}
|
static void |
verify(EcPk pk,
String text,
String signature,
org.stjs.javascript.functions.Callback1<Boolean> success,
org.stjs.javascript.functions.Callback1<String> failure)
Asynchronous form of {{#crossLink
"EcRsaOaep/verify:method"}}EcRsaOaep.verify{{/crossLink}}
|
public static void initWorker()
public static void encrypt(EcPk pk, String plaintext, org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{EcPk} - pk Public Key to use to encrypt.{string} - plaintext Plaintext to encrypt.{function(string)} - success Success method, result is Base64
encoded Ciphertext.{function(string)} - failure Failure method, parameter is error
message.public static void decrypt(EcPpk ppk, String ciphertext, org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{EcPpk} - ppk Public private keypair to use to decrypt.{string} - ciphertext Ciphertext to decrypt.{function(string)} - success Success method, result is unencoded
plaintext.{function(string)} - failure Failure method, parameter is error
message.public static void sign(EcPpk ppk, String text, org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{EcPpk} - ppk Public private keypair to use to sign message.{string} - text Text to sign.{function(string)} - success Success method, result is Base64
encoded signature.{function(string)} - failure Failure method, parameter is error
message.public static void signSha256(EcPpk ppk, String text, org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{EcPpk} - ppk Public private keypair to use to sign message.{string} - text Text to sign.{function(string)} - success Success method, result is Base64
encoded signature.{function(string)} - failure Failure method, parameter is error
message.public static void verify(EcPk pk, String text, String signature, org.stjs.javascript.functions.Callback1<Boolean> success, org.stjs.javascript.functions.Callback1<String> failure)
{EcPk} - pk Public key to use to verify message.{string} - text Text to use in verification.{string} - signature Signature to use in verification.{function(boolean)} - success Success method, result is whether
signature is valid.{function(string)} - failure Failure method, parameter is error
message.Copyright © 2019 Eduworks Corporation. All rights reserved.