An RSA key. More...
Public Member Functions | |
| byte[] | getBytes () |
| Serializes this key to binary. More... | |
| byte[] | getCoefficient () |
| Gets the private value inverse-Q. More... | |
| byte[] | getExponent1 () |
| Gets the private value DP. More... | |
| byte[] | getExponent2 () |
| Gets the private value DQ. More... | |
| byte[] | getModulus () |
| Gets the public value N. More... | |
| byte[] | getPrime1 () |
| Gets the private value P. More... | |
| byte[] | getPrime2 () |
| Gets the private value Q. More... | |
| byte[] | getPrivateExponent () |
| Gets the private value D. More... | |
| byte[] | getPublicExponent () |
| Gets the public value E. More... | |
| int | getSize () |
| Gets the size of the key. More... | |
| fm.liveswitch.AsymmetricKeyType | getType () |
| Gets the key type. More... | |
| boolean | hasPrivate () |
| Returns. More... | |
| boolean | hasPublic () |
| Returns. More... | |
| RsaKey () | |
| void | setCoefficient (byte[] value) |
| Sets the private value inverse-Q. More... | |
| void | setExponent1 (byte[] value) |
| Sets the private value DP. More... | |
| void | setExponent2 (byte[] value) |
| Sets the private value DQ. More... | |
| void | setModulus (byte[] value) |
| Sets the public value N. More... | |
| void | setPrime1 (byte[] value) |
| Sets the private value P. More... | |
| void | setPrime2 (byte[] value) |
| Sets the private value Q. More... | |
| void | setPrivateExponent (byte[] value) |
| Sets the private value D. More... | |
| void | setPublicExponent (byte[] value) |
| Sets the public value E. More... | |
Static Public Member Functions | |
| static fm.liveswitch.RsaKey | parseBuffer (fm.liveswitch.DataBuffer buffer) |
| Deserializes a key from binary. More... | |
| static fm.liveswitch.RsaKey | parseBytes (byte[] bytes) |
| Deserializes a key from binary. More... | |
Static Public Member Functions inherited from fm.liveswitch.AsymmetricKey | |
| static fm.liveswitch.AsymmetricKey | createKey (fm.liveswitch.AsymmetricKeyType keyType) |
| Creates a key. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from fm.liveswitch.AsymmetricKey | |
| AsymmetricKey () | |
An RSA key.
| fm.liveswitch.RsaKey.RsaKey | ( | ) |
| byte [] fm.liveswitch.RsaKey.getBytes | ( | ) |
Serializes this key to binary.
| byte [] fm.liveswitch.RsaKey.getCoefficient | ( | ) |
Gets the private value inverse-Q.
| byte [] fm.liveswitch.RsaKey.getExponent1 | ( | ) |
Gets the private value DP.
| byte [] fm.liveswitch.RsaKey.getExponent2 | ( | ) |
Gets the private value DQ.
| byte [] fm.liveswitch.RsaKey.getModulus | ( | ) |
Gets the public value N.
| byte [] fm.liveswitch.RsaKey.getPrime1 | ( | ) |
Gets the private value P.
| byte [] fm.liveswitch.RsaKey.getPrime2 | ( | ) |
Gets the private value Q.
| byte [] fm.liveswitch.RsaKey.getPrivateExponent | ( | ) |
Gets the private value D.
| byte [] fm.liveswitch.RsaKey.getPublicExponent | ( | ) |
Gets the public value E.
| int fm.liveswitch.RsaKey.getSize | ( | ) |
Gets the size of the key.
| fm.liveswitch.AsymmetricKeyType fm.liveswitch.RsaKey.getType | ( | ) |
Gets the key type.
Reimplemented from fm.liveswitch.AsymmetricKey.
| boolean fm.liveswitch.RsaKey.hasPrivate | ( | ) |
Returns.
if the key contains private information.
Reimplemented from fm.liveswitch.AsymmetricKey.
| boolean fm.liveswitch.RsaKey.hasPublic | ( | ) |
Returns.
if the key contains public information.
Reimplemented from fm.liveswitch.AsymmetricKey.
|
static |
Deserializes a key from binary.
| buffer | The buffer. |
|
static |
Deserializes a key from binary.
| bytes | The bytes. |
| void fm.liveswitch.RsaKey.setCoefficient | ( | byte[] | value | ) |
Sets the private value inverse-Q.
| void fm.liveswitch.RsaKey.setExponent1 | ( | byte[] | value | ) |
Sets the private value DP.
| void fm.liveswitch.RsaKey.setExponent2 | ( | byte[] | value | ) |
Sets the private value DQ.
| void fm.liveswitch.RsaKey.setModulus | ( | byte[] | value | ) |
Sets the public value N.
| void fm.liveswitch.RsaKey.setPrime1 | ( | byte[] | value | ) |
Sets the private value P.
| void fm.liveswitch.RsaKey.setPrime2 | ( | byte[] | value | ) |
Sets the private value Q.
| void fm.liveswitch.RsaKey.setPrivateExponent | ( | byte[] | value | ) |
Sets the private value D.
| void fm.liveswitch.RsaKey.setPublicExponent | ( | byte[] | value | ) |
Sets the public value E.