Class SymmetricSecureKey
java.lang.Object
org.miaixz.bus.shade.safety.algorithm.SecureKey
org.miaixz.bus.shade.safety.algorithm.SymmetricSecureKey
- All Implemented Interfaces:
Serializable,Key,SymmetricKey
对称密钥
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSymmetricSecureKey(String algorithm, int keysize, int ivsize, String password, byte[] key, byte[] iv) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]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
-
SymmetricSecureKey
-
-
Method Details
-
getEncryptKey
public byte[] getEncryptKey()- Specified by:
getEncryptKeyin interfaceKey- Returns:
- 加密密钥
-
getDecryptKey
public byte[] getDecryptKey()- Specified by:
getDecryptKeyin interfaceKey- Returns:
- 解密密钥
-
getSecretKey
public byte[] getSecretKey()- Specified by:
getSecretKeyin interfaceSymmetricKey- Returns:
- 密钥
-
getIvParameter
public byte[] getIvParameter()- Specified by:
getIvParameterin interfaceKey- Returns:
- 向量参数
-