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字节时,左补0x00When exponent less than 512 bytes,padded with 0x00 on the leftintgetExponentLen()指数位长度Exponent lengthbyte[]getKeyInfo()密钥信息Key information will be customized by applicationbyte[]getModulus()模,模长小于512字节时,靠右存储,左补0x00If the length of modulus is less than 512 bytes, store from right, padded with 0x00 on the leftintgetModulusLen()模位数长度the length of modulus bitsvoidsetExponent(byte[] exponent)指数,小于512字节时,左补0x00When exponent less than 512 bytes,padded with 0x00 on the leftvoidsetExponentLen(int exponentLen)指数位长度Exponent lengthvoidsetKeyInfo(byte[] keyInfo)密钥信息Key information will be customized by applicationvoidsetModulus(byte[] modulus)模,模长小于512字节时,靠右存储,左补0x00。If the length of modulus is less than 512 bytes, store from right, padded with 0x00 on the leftvoidsetModulusLen(int modulusLen)模位数长度the length of modulus bits
-
-
-
Constructor Detail
-
RSAKeyInfo
public RSAKeyInfo()
-
-
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字节时,靠右存储,左补0x00If 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字节时,左补0x00When exponent less than 512 bytes,padded with 0x00 on the left- Returns:
-
setExponent
public void setExponent(byte[] exponent)
指数,小于512字节时,左补0x00When 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-
-
-