Class SecureKey

java.lang.Object
org.aoju.bus.shade.safety.algorithm.SecureKey
All Implemented Interfaces:
Serializable, Key
Direct Known Subclasses:
AsymmetricSecureKey, SymmetricSecureKey

public abstract class SecureKey extends Object implements Key, Serializable
密钥
Since:
Java 17+
Author:
Kimi Liu
See Also:
  • Field Details

    • algorithm

      protected final String algorithm
    • keysize

      protected final int keysize
    • ivsize

      protected final int ivsize
    • password

      protected final String password
  • Constructor Details

    • SecureKey

      protected SecureKey(String algorithm, int keysize, int ivsize, String password)
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Specified by:
      getAlgorithm in interface Key
      Returns:
      密钥算法名称
    • getKeysize

      public int getKeysize()
      Specified by:
      getKeysize in interface Key
      Returns:
      密钥长度
    • getIvsize

      public int getIvsize()
      Specified by:
      getIvsize in interface Key
      Returns:
      向量长度
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface Key
      Returns:
      密码