public final class RSAPublicKey
extends chat.dim.type.Dictionary
implements chat.dim.crypto.EncryptKey
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RSA_ECB_PKCS1 |
static java.lang.String |
RSA_SHA256 |
| Constructor and Description |
|---|
RSAPublicKey(java.util.Map<java.lang.String,java.lang.Object> dictionary) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encrypt(byte[] plaintext) |
java.lang.String |
getAlgorithm() |
byte[] |
getData() |
boolean |
match(chat.dim.crypto.SignKey arg0) |
boolean |
verify(byte[] data,
byte[] signature) |
clear, containsKey, containsValue, copyMap, entrySet, equals, get, getBoolean, getByte, getDouble, getFloat, getInt, getLong, getShort, getString, getTime, isEmpty, keySet, put, putAll, remove, setMap, setString, setTime, size, toMap, toString, valuesclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopyMap, getBoolean, getByte, getDouble, getFloat, getInt, getLong, getShort, getString, getTime, setMap, setString, setTime, toMappublic static final java.lang.String RSA_SHA256
public static final java.lang.String RSA_ECB_PKCS1
public RSAPublicKey(java.util.Map<java.lang.String,java.lang.Object> dictionary)
throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldExceptionpublic byte[] getData()
getData in interface chat.dim.crypto.CryptographyKeypublic byte[] encrypt(byte[] plaintext)
encrypt in interface chat.dim.crypto.EncryptKeypublic boolean verify(byte[] data,
byte[] signature)
verify in interface chat.dim.crypto.VerifyKeypublic java.lang.String getAlgorithm()
getAlgorithm in interface chat.dim.crypto.CryptographyKeypublic boolean match(chat.dim.crypto.SignKey arg0)
match in interface chat.dim.crypto.VerifyKey