Class SM2KeyPair
java.lang.Object
org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair
org.fisco.bcos.sdk.crypto.keypair.SM2KeyPair
public class SM2KeyPair extends CryptoKeyPair
-
Field Summary
Fields inherited from class org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair
ADDRESS_LENGTH_IN_HEX, ADDRESS_SIZE, config, curveName, ECDSA_ACCOUNT_SUBDIR, ECDSA_CURVE_NAME, ECDSA_SIGNATURE_ALGORITHM, GM_ACCOUNT_SUBDIR, hashImpl, hexPrivateKey, hexPublicKey, keyPair, keyStoreSubDir, logger, P12_FILE_POSTFIX, p12KeyStoreFilePath, PEM_FILE_POSTFIX, pemKeyStoreFilePath, PUBLIC_KEY_LENGTH_IN_HEX, PUBLIC_KEY_SIZE, signatureAlgorithm, SM_SIGNATURE_ALGORITHM, SM2_CURVE_NAME -
Constructor Summary
Constructors Modifier Constructor Description SM2KeyPair()protectedSM2KeyPair(com.webank.wedpr.crypto.CryptoResult sm2keyPairInfo)SM2KeyPair(java.security.KeyPair javaKeyPair) -
Method Summary
Modifier and Type Method Description CryptoKeyPaircreateKeyPair(java.security.KeyPair javaKeyPair)CryptoKeyPairgenerateKeyPair()generate keyPair randomlyMethods inherited from class org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair
createKeyPair, createKeyPair, getAddress, getAddress, getAddress, getAddress, getHexPrivateKey, getHexPublicKey, getKeyPair, getKeyStoreFilePath, getKeyStoreSubDir, getP12KeyStoreFilePath, getP12KeyStoreFilePath, getPemKeyStoreFilePath, getPemKeyStoreFilePath, getPublicKeyNoPrefix, setConfig, storeKeyPairWithP12, storeKeyPairWithP12Format, storeKeyPairWithPem, storeKeyPairWithPemFormat
-
Constructor Details
-
SM2KeyPair
public SM2KeyPair() -
SM2KeyPair
public SM2KeyPair(java.security.KeyPair javaKeyPair) -
SM2KeyPair
protected SM2KeyPair(com.webank.wedpr.crypto.CryptoResult sm2keyPairInfo)
-
-
Method Details
-
generateKeyPair
generate keyPair randomly- Specified by:
generateKeyPairin classCryptoKeyPair- Returns:
- the generated keyPair
-
createKeyPair
- Specified by:
createKeyPairin classCryptoKeyPair
-