public class HsmSM2KeyPair extends CryptoKeyPair
| 限定符和类型 | 字段和说明 |
|---|---|
static Hash |
DefaultHashAlgorithm |
ADDRESS_LENGTH_IN_HEX, ADDRESS_SIZE, config, curveName, ECDSA_ACCOUNT_SUBDIR, ECDSA_CURVE_NAME, ECDSA_SIGNATURE_ALGORITHM, GM_ACCOUNT_SUBDIR, hashImpl, hexPrivateKey, hexPublicKey, jniKeyPair, 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| 构造器和说明 |
|---|
HsmSM2KeyPair(java.lang.String hsmLibPath,
int hsmKeyIndex,
java.lang.String hsmPassword) |
| 限定符和类型 | 方法和说明 |
|---|---|
CryptoKeyPair |
createKeyPair(java.security.KeyPair javaKeyPair)
Abstract function of create keyPair randomly
|
CryptoKeyPair |
generateKeyPair()
generate keyPair randomly
|
int |
getHsmKeyIndex() |
java.lang.String |
getHsmLibPath() |
java.lang.String |
getHsmPassword() |
CryptoKeyPair |
useKeyPair() |
createKeyPair, createKeyPair, destroy, finalize, getAddress, getAddress, getAddress, getAddress, getAddress, getCurveName, getHexPrivateKey, getHexPublicKey, getJniKeyPair, getKeyPair, getKeyStoreFilePath, getKeyStoreSubDir, getKeyType, getP12KeyStoreFilePath, getP12KeyStoreFilePath, getPemKeyStoreFilePath, getPemKeyStoreFilePath, getPublicKeyNoPrefix, releaseJni, setConfig, storeKeyPairWithP12, storeKeyPairWithP12Format, storeKeyPairWithPem, storeKeyPairWithPemFormatpublic static Hash DefaultHashAlgorithm
public HsmSM2KeyPair(java.lang.String hsmLibPath,
int hsmKeyIndex,
java.lang.String hsmPassword)
public CryptoKeyPair generateKeyPair()
generateKeyPair 在类中 CryptoKeyPairpublic CryptoKeyPair createKeyPair(java.security.KeyPair javaKeyPair)
CryptoKeyPaircreateKeyPair 在类中 CryptoKeyPairjavaKeyPair - KeyPair type key pairpublic CryptoKeyPair useKeyPair()
public java.lang.String getHsmLibPath()
public int getHsmKeyIndex()
public java.lang.String getHsmPassword()