com.pax.dal.entity

Class RSAKeyInfo

  • java.lang.Object
    • com.pax.dal.entity.RSAKeyInfo


  • public class RSAKeyInfo
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      RSAKeyInfo() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      byte[] getExponent()
      指数,小于512字节时,左补0x00
      When exponent less than 512 bytes,padded with 0x00 on the left
      int getExponentLen()
      指数位长度
      Exponent length
      byte[] getKeyInfo()
      密钥信息
      Key information will be customized by application
      byte[] getModulus()
      模,模长小于512字节时,靠右存储,左补0x00
      If the length of modulus is less than 512 bytes, store from right, padded with 0x00 on the left
      int getModulusLen()
      模位数长度
      the length of modulus bits
      void setExponent(byte[] exponent)
      指数,小于512字节时,左补0x00
      When exponent less than 512 bytes,padded with 0x00 on the left
      void setExponentLen(int exponentLen)
      指数位长度
      Exponent length
      void setKeyInfo(byte[] keyInfo)
      密钥信息
      Key information will be customized by application
      void setModulus(byte[] modulus)
      模,模长小于512字节时,靠右存储,左补0x00。
      If the length of modulus is less than 512 bytes, store from right, padded with 0x00 on the left
      void setModulusLen(int modulusLen)
      模位数长度
      the length of modulus bits
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getModulusLen

        public int getModulusLen()
        模位数长度
        the length of modulus bits
        Returns:
      • setModulusLen

        public void setModulusLen(int modulusLen)
        模位数长度
        the length of modulus bits
        Parameters:
        modulusLen -
      • getModulus

        public byte[] getModulus()
        模,模长小于512字节时,靠右存储,左补0x00
        If the length of modulus is less than 512 bytes, store from right, padded with 0x00 on the left
        Returns:
      • setModulus

        public void setModulus(byte[] modulus)
        模,模长小于512字节时,靠右存储,左补0x00。
        If the length of modulus is less than 512 bytes, store from right, padded with 0x00 on the left
        Parameters:
        modulus -
      • getExponentLen

        public int getExponentLen()
        指数位长度
        Exponent length
        Returns:
      • setExponentLen

        public void setExponentLen(int exponentLen)
        指数位长度
        Exponent length
        Parameters:
        exponentLen -
      • getExponent

        public byte[] getExponent()
        指数,小于512字节时,左补0x00
        When exponent less than 512 bytes,padded with 0x00 on the left
        Returns:
      • setExponent

        public void setExponent(byte[] exponent)
        指数,小于512字节时,左补0x00
        When exponent less than 512 bytes,padded with 0x00 on the left
        Parameters:
        exponent -
      • getKeyInfo

        public byte[] getKeyInfo()
        密钥信息
        Key information will be customized by application
        Returns:
      • setKeyInfo

        public void setKeyInfo(byte[] keyInfo)
        密钥信息
        Key information will be customized by application
        Parameters:
        keyInfo -