数字证书公钥相关对象之间的转换
2021-04-07 14:24:06 0 举报
为你推荐
查看更多
java数字证书公钥对象之间的转换关系
作者其他创作
大纲/内容
X509EncodedKeySpec pubKeySpec = new X509EncodedKeySpec(subjectPublicKeyInfo.getEncoded()); KeyFactory keyFactory = KeyFactory.getInstance(\"RSA\"); PublicKey publicKey = keyFactory.generatePublic(pubKeySpec);
subjectPublicKeyInfo.getPublicKeyData().getBytes()
java.security.PublicKeypublicKey
(1.2.840.113549.1.1.1为RSA的oid)AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(new ASN1ObjectIdentifier(\"1.2.840.113549.1.1.1\
byte[]keyData
SubjectPublicKeyInfo.getInstance(publicKey.getEncoded())或new SubjectPublicKeyInfo(ASN1Sequence.getInstance(publicKey.getEncoded())
org.bouncycastle.asn1.x509.SubjectPublicKeyInfosubjectPublicKeyInfo
收藏
0 条评论
回复 删除
下一页