Class AsymmetricSecureKey
java.lang.Object
org.miaixz.bus.shade.safety.algorithm.SecureKey
org.miaixz.bus.shade.safety.algorithm.AsymmetricSecureKey
- All Implemented Interfaces:
Serializable,AsymmetricKey,Key
非对称密钥
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAsymmetricSecureKey(String algorithm, int keysize, int ivsize, String password, byte[] publicKey, byte[] privateKey) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]byte[]byte[]byte[]Methods inherited from class org.miaixz.bus.shade.safety.algorithm.SecureKey
getAlgorithm, getIvsize, getKeysize, getPasswordMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.miaixz.bus.shade.safety.algorithm.Key
getAlgorithm, getIvsize, getKeysize, getPassword
-
Constructor Details
-
AsymmetricSecureKey
-
-
Method Details
-
getEncryptKey
public byte[] getEncryptKey()- Specified by:
getEncryptKeyin interfaceKey- Returns:
- 加密密钥
-
getDecryptKey
public byte[] getDecryptKey()- Specified by:
getDecryptKeyin interfaceKey- Returns:
- 解密密钥
-
getPublicKey
public byte[] getPublicKey()- Specified by:
getPublicKeyin interfaceAsymmetricKey- Returns:
- 公钥
-
getPrivateKey
public byte[] getPrivateKey()- Specified by:
getPrivateKeyin interfaceAsymmetricKey- Returns:
- 私钥
-
getIvParameter
public byte[] getIvParameter()- Specified by:
getIvParameterin interfaceKey- Returns:
- 向量参数
-