public final class RSAPrivateKey
extends chat.dim.type.Dictionary
implements chat.dim.crypto.DecryptKey
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RSA_ECB_PKCS1 |
static java.lang.String |
RSA_SHA256 |
| Constructor and Description |
|---|
RSAPrivateKey(java.util.Map<java.lang.String,java.lang.Object> dictionary) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] ciphertext) |
boolean |
equals(java.lang.Object arg0) |
java.lang.String |
getAlgorithm() |
byte[] |
getData() |
chat.dim.crypto.PublicKey |
getPublicKey() |
boolean |
match(chat.dim.crypto.EncryptKey pKey) |
byte[] |
sign(byte[] data) |
clear, containsKey, containsValue, copyMap, entrySet, 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 RSAPrivateKey(java.util.Map<java.lang.String,java.lang.Object> dictionary)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionpublic byte[] getData()
getData in interface chat.dim.crypto.CryptographyKeypublic chat.dim.crypto.PublicKey getPublicKey()
getPublicKey in interface chat.dim.crypto.PrivateKeypublic byte[] decrypt(byte[] ciphertext)
decrypt in interface chat.dim.crypto.DecryptKeypublic byte[] sign(byte[] data)
sign in interface chat.dim.crypto.SignKeypublic boolean match(chat.dim.crypto.EncryptKey pKey)
match in interface chat.dim.crypto.DecryptKeypublic boolean equals(java.lang.Object arg0)
equals in interface java.util.Map<java.lang.String,java.lang.Object>equals in class chat.dim.type.Dictionarypublic java.lang.String getAlgorithm()
getAlgorithm in interface chat.dim.crypto.CryptographyKey