Package com.syntifi.casper.sdk.model.key
Class PublicKey
- java.lang.Object
-
- com.syntifi.casper.sdk.model.key.AbstractSerializedKeyTaggedHex<AlgorithmTag>
-
- com.syntifi.casper.sdk.model.key.PublicKey
-
- All Implemented Interfaces:
EncodableValue
public class PublicKey extends AbstractSerializedKeyTaggedHex<AlgorithmTag>
Hex-encoded cryptographic public key, including the algorithm tag prefix.- Since:
- 0.0.1
-
-
Constructor Summary
Constructors Constructor Description PublicKey()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createPublicKey(java.lang.String key)
static PublicKey
fromAbstractPublicKey(com.syntifi.crypto.key.AbstractPublicKey key)
static PublicKey
fromBytes(byte[] bytes)
static PublicKey
fromTaggedHexString(java.lang.String hex)
com.syntifi.crypto.key.AbstractPublicKey
getPubKey()
-
Methods inherited from class com.syntifi.casper.sdk.model.key.AbstractSerializedKeyTaggedHex
canEqual, encode, equals, getAlgoTaggedHex, getKey, getTag, hashCode, setKey, setTag
-
-
-
-
Method Detail
-
fromTaggedHexString
public static PublicKey fromTaggedHexString(java.lang.String hex) throws java.security.NoSuchAlgorithmException, InvalidByteStringException
- Throws:
java.security.NoSuchAlgorithmException
InvalidByteStringException
-
fromBytes
public static PublicKey fromBytes(byte[] bytes) throws java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchAlgorithmException
-
fromAbstractPublicKey
public static PublicKey fromAbstractPublicKey(com.syntifi.crypto.key.AbstractPublicKey key)
-
createPublicKey
public void createPublicKey(java.lang.String key) throws java.security.NoSuchAlgorithmException, InvalidByteStringException
- Throws:
java.security.NoSuchAlgorithmException
InvalidByteStringException
-
getPubKey
public com.syntifi.crypto.key.AbstractPublicKey getPubKey() throws java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchAlgorithmException
-
-