Class SecureKey
java.lang.Object
org.aoju.bus.shade.safety.algorithm.SecureKey
- All Implemented Interfaces:
Serializable,Key
- Direct Known Subclasses:
AsymmetricSecureKey,SymmetricSecureKey
密钥
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aoju.bus.shade.safety.algorithm.Key
getDecryptKey, getEncryptKey, getIvParameter
-
Field Details
-
algorithm
-
keysize
protected final int keysize -
ivsize
protected final int ivsize -
password
-
-
Constructor Details
-
SecureKey
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey- Returns:
- 密钥算法名称
-
getKeysize
public int getKeysize()- Specified by:
getKeysizein interfaceKey- Returns:
- 密钥长度
-
getIvsize
public int getIvsize() -
getPassword
- Specified by:
getPasswordin interfaceKey- Returns:
- 密码
-