类 SDFSM2KeyPair
java.lang.Object
org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair
org.fisco.bcos.sdk.crypto.keypair.SDFSM2KeyPair
public class SDFSM2KeyPair extends CryptoKeyPair
-
字段概要
字段 修饰符和类型 字段 说明 static Hash
DefaultHashAlgorithm
boolean
isInternalKey
long
keyIndex
protected static org.slf4j.Logger
logger
java.lang.String
password
从类继承的字段 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, P12_FILE_POSTFIX, p12KeyStoreFilePath, PEM_FILE_POSTFIX, pemKeyStoreFilePath, PRIVATE_KEY_SIZE, PRIVATE_KEY_SIZE_IN_HEX, PUBLIC_KEY_LENGTH_IN_HEX, PUBLIC_KEY_SIZE, signatureAlgorithm, SM_SIGNATURE_ALGORITHM, SM2_CURVE_NAME, UNCOMPRESSED_PUBLICKEY_FLAG_STR
-
构造器概要
构造器 限定符 构造器 说明 SDFSM2KeyPair()
protected
SDFSM2KeyPair(long keyIndex, java.lang.String password)
protected
SDFSM2KeyPair(com.webank.wedpr.crypto.CryptoResult result)
SDFSM2KeyPair(java.security.KeyPair javaKeyPair)
-
方法概要
修饰符和类型 方法 说明 static void
checkSDFCryptoResult(com.webank.blockchain.hsm.crypto.sdf.SDFCryptoResult result)
SDFSM2KeyPair
createKeyPair(long keyIndex, java.lang.String password)
CryptoKeyPair
createKeyPair(java.security.KeyPair keyPair)
Abstract function of create keyPair randomlyCryptoKeyPair
generateKeyPair()
Abstract function of generate keyPair randomlystatic byte[]
getAddressByPublicKey(byte[] publicKey)
static java.lang.String
getAddressByPublicKey(java.lang.String publicKey)
static byte[]
getAddressByPublicKey(java.math.BigInteger publicKey)
long
getKeyIndex()
java.lang.String
getPassword()
boolean
isInternalKey()
从类继承的方法 org.fisco.bcos.sdk.crypto.keypair.CryptoKeyPair
createKeyPair, createKeyPair, getAddress, getAddress, getAddress, getAddress, getAddress, getHexPrivateKey, getHexPublicKey, getKeyPair, getKeyStoreFilePath, getKeyStoreSubDir, getP12KeyStoreFilePath, getP12KeyStoreFilePath, getPemKeyStoreFilePath, getPemKeyStoreFilePath, getPublicKeyNoPrefix, setConfig, storeKeyPairWithP12, storeKeyPairWithP12Format, storeKeyPairWithPem, storeKeyPairWithPemFormat
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
字段详细资料
-
logger
protected static org.slf4j.Logger logger -
DefaultHashAlgorithm
-
keyIndex
public long keyIndex -
password
public java.lang.String password -
isInternalKey
public boolean isInternalKey
-
-
构造器详细资料
-
SDFSM2KeyPair
public SDFSM2KeyPair() -
SDFSM2KeyPair
public SDFSM2KeyPair(java.security.KeyPair javaKeyPair) -
SDFSM2KeyPair
protected SDFSM2KeyPair(com.webank.wedpr.crypto.CryptoResult result) -
SDFSM2KeyPair
protected SDFSM2KeyPair(long keyIndex, java.lang.String password)
-
-
方法详细资料
-
generateKeyPair
从类复制的说明:CryptoKeyPair
Abstract function of generate keyPair randomly- 指定者:
generateKeyPair
在类中CryptoKeyPair
- 返回:
- the generated keyPair
-
checkSDFCryptoResult
public static void checkSDFCryptoResult(com.webank.blockchain.hsm.crypto.sdf.SDFCryptoResult result) -
createKeyPair
从类复制的说明:CryptoKeyPair
Abstract function of create keyPair randomly- 指定者:
createKeyPair
在类中CryptoKeyPair
- 参数:
keyPair
- KeyPair type key pair- 返回:
- CryptoKeyPair type key pair
-
createKeyPair
-
isInternalKey
public boolean isInternalKey() -
getKeyIndex
public long getKeyIndex() -
getPassword
public java.lang.String getPassword() -
getAddressByPublicKey
public static java.lang.String getAddressByPublicKey(java.lang.String publicKey) -
getAddressByPublicKey
public static byte[] getAddressByPublicKey(byte[] publicKey) -
getAddressByPublicKey
public static byte[] getAddressByPublicKey(java.math.BigInteger publicKey)
-