An elliptic-curve key. More...
Public Member Functions | |
| EcdsaKey () | |
| byte[] | getBytes () |
| Serializes this key to binary. More... | |
| fm.liveswitch.EcdsaNamedCurve | getNamedCurve () |
| Gets the named curve. More... | |
| byte[] | getPrivateKey () |
| Gets the private key. More... | |
| byte[] | getPublicKey () |
| Gets the public key. More... | |
| int | getSize () |
| Gets the size of the key. More... | |
| String | getString () |
| Serializes this key to a string. More... | |
| fm.liveswitch.AsymmetricKeyType | getType () |
| Gets the key type. More... | |
| boolean | hasPrivate () |
| Returns. More... | |
| boolean | hasPublic () |
| Returns. More... | |
| void | setNamedCurve (fm.liveswitch.EcdsaNamedCurve value) |
| Sets the named curve. More... | |
| void | setPrivateKey (byte[] value) |
| Sets the private key. More... | |
| void | setPublicKey (byte[] value) |
| Sets the public key. More... | |
| fm.liveswitch.EcdsaKey | toPublic () |
| Creates a copy of this key without the private key. More... | |
Static Public Member Functions | |
| static fm.liveswitch.EcdsaKey | parseBuffer (fm.liveswitch.DataBuffer buffer, boolean isPrivate) |
| Deserializes a key from binary. More... | |
| static fm.liveswitch.EcdsaKey | parseBytes (byte[] bytes, boolean isPrivate) |
| Deserializes a key from binary. More... | |
| static boolean | parseSignature (byte[] signature, fm.liveswitch.Holder< byte[]> r, fm.liveswitch.Holder< byte[]> s) |
| Parses a signature. More... | |
| static fm.liveswitch.EcdsaKey | parseString (String str) |
| Deserializes a key from a string. 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 elliptic-curve key.
| fm.liveswitch.EcdsaKey.EcdsaKey | ( | ) |
| byte [] fm.liveswitch.EcdsaKey.getBytes | ( | ) |
Serializes this key to binary.
| fm.liveswitch.EcdsaNamedCurve fm.liveswitch.EcdsaKey.getNamedCurve | ( | ) |
Gets the named curve.
| byte [] fm.liveswitch.EcdsaKey.getPrivateKey | ( | ) |
Gets the private key.
| byte [] fm.liveswitch.EcdsaKey.getPublicKey | ( | ) |
Gets the public key.
| int fm.liveswitch.EcdsaKey.getSize | ( | ) |
Gets the size of the key.
| String fm.liveswitch.EcdsaKey.getString | ( | ) |
Serializes this key to a string.
| fm.liveswitch.AsymmetricKeyType fm.liveswitch.EcdsaKey.getType | ( | ) |
Gets the key type.
Reimplemented from fm.liveswitch.AsymmetricKey.
| boolean fm.liveswitch.EcdsaKey.hasPrivate | ( | ) |
Returns.
if the key contains private information.
Reimplemented from fm.liveswitch.AsymmetricKey.
| boolean fm.liveswitch.EcdsaKey.hasPublic | ( | ) |
Returns.
if the key contains public information.
Reimplemented from fm.liveswitch.AsymmetricKey.
|
static |
Deserializes a key from binary.
| buffer | The buffer. |
| isPrivate | Whether this is a public key. |
|
static |
Deserializes a key from binary.
| bytes | The bytes. |
| isPrivate | Whether this is a public key. |
|
static |
Parses a signature.
| signature | The signature. |
| r | The R value. |
| s | The S value. |
|
static |
Deserializes a key from a string.
| str | The string. |
| void fm.liveswitch.EcdsaKey.setNamedCurve | ( | fm.liveswitch.EcdsaNamedCurve | value | ) |
Sets the named curve.
| void fm.liveswitch.EcdsaKey.setPrivateKey | ( | byte[] | value | ) |
Sets the private key.
| void fm.liveswitch.EcdsaKey.setPublicKey | ( | byte[] | value | ) |
Sets the public key.
| fm.liveswitch.EcdsaKey fm.liveswitch.EcdsaKey.toPublic | ( | ) |
Creates a copy of this key without the private key.