Interface Key
- All Known Subinterfaces:
AsymmetricKey,SymmetricKey
- All Known Implementing Classes:
AsymmetricSecureKey,SecureKey,SymmetricSecureKey
public interface Key
密钥
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]byte[]intint
-
Method Details
-
getAlgorithm
String getAlgorithm()- Returns:
- 密钥算法名称
-
getKeysize
int getKeysize()- Returns:
- 密钥长度
-
getIvsize
int getIvsize()- Returns:
- 向量长度
-
getPassword
String getPassword()- Returns:
- 密码
-
getEncryptKey
byte[] getEncryptKey()- Returns:
- 加密密钥
-
getDecryptKey
byte[] getDecryptKey()- Returns:
- 解密密钥
-
getIvParameter
byte[] getIvParameter()- Returns:
- 向量参数
-