public class RsaCapk extends AuthorityCapk
Constructor and Description |
---|
RsaCapk(byte[] rid,
byte index,
byte[] validDate,
byte hashAlgorithmIndicator,
byte caAlgorithmIndicator,
byte[] checksum,
byte[] modules,
byte[] exponent) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getExponent() |
byte[] |
getModules() |
void |
setExponent(byte[] exponent) |
void |
setModules(byte[] modules) |
getCaAlgorithmIndicator, getChecksum, getHashAlgorithmIndicator, getIndex, getRid, getType, getValidDate, setCaAlgorithmIndicator, setChecksum, setHashAlgorithmIndicator, setIndex, setRid, setType, setValidDate
public RsaCapk(byte[] rid, byte index, byte[] validDate, byte hashAlgorithmIndicator, byte caAlgorithmIndicator, byte[] checksum, byte[] modules, byte[] exponent)
type
- 公钥类型 0 - 国际Rsa - sha1 公钥算法 1 - 国密SM2- SM3公钥算法rid
- rid用于定位公钥的元素之一index
- 索引用于定位公钥的元素之一validDate
- 公钥有效期hashAlgorithmIndicator
- 哈希算法索引caAlgorithmIndicator
- 公钥算法索引checksum
- 校验值modules
- 模exponent
- 指数public byte[] getModules()
public void setModules(byte[] modules)
modules
- the modules to setpublic byte[] getExponent()
public void setExponent(byte[] exponent)
exponent
- the exponent to set