Class PEMKeyStore
java.lang.Object
org.fisco.bcos.sdk.crypto.keystore.KeyTool
org.fisco.bcos.sdk.crypto.keystore.PEMKeyStore
public class PEMKeyStore extends KeyTool
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPRIVATE_KEYFields inherited from class org.fisco.bcos.sdk.crypto.keystore.KeyTool
keyStore, keyStoreFile, logger, password -
Constructor Summary
Constructors Constructor Description PEMKeyStore(java.io.InputStream keyStoreFileInputStream)PEMKeyStore(java.lang.String keyStoreFile) -
Method Summary
Modifier and Type Method Description protected java.security.PrivateKeygetPrivateKey()protected java.security.PublicKeygetPublicKey()protected voidload(java.io.InputStream in)static voidstoreKeyPairWithPemFormat(java.lang.String hexedPrivateKey, java.lang.String privateKeyFilePath, java.lang.String curveName)Methods inherited from class org.fisco.bcos.sdk.crypto.keystore.KeyTool
convertHexedStringToPrivateKey, convertHexedStringToPrivateKey, getHexedPrivateKey, getHexedPublicKey, getHexedPublicKey, getKeyPair, getKeyStoreFile, getPublicKeyFromPrivateKey, getPublicKeyFromPrivateKey, load, storePublicKeyWithPem
-
Field Details
-
PRIVATE_KEY
public static final java.lang.String PRIVATE_KEY- See Also:
- Constant Field Values
-
-
Constructor Details
-
PEMKeyStore
public PEMKeyStore(java.lang.String keyStoreFile) -
PEMKeyStore
public PEMKeyStore(java.io.InputStream keyStoreFileInputStream)
-
-
Method Details
-
getPublicKey
protected java.security.PublicKey getPublicKey()- Specified by:
getPublicKeyin classKeyTool
-
storeKeyPairWithPemFormat
public static void storeKeyPairWithPemFormat(java.lang.String hexedPrivateKey, java.lang.String privateKeyFilePath, java.lang.String curveName) throws SaveKeyStoreException- Throws:
SaveKeyStoreException
-
load
protected void load(java.io.InputStream in) -
getPrivateKey
protected java.security.PrivateKey getPrivateKey()- Specified by:
getPrivateKeyin classKeyTool
-