AuthenticatedSafe.java
资源名称:security.rar [点击查看]
上传用户:lior1029
上传日期:2013-05-07
资源大小:209k
文件大小:1k
源码类别:
CA认证
开发平台:
Java
- package org.bouncycastle.asn1.pkcs;
- import org.bouncycastle.asn1.*;
- public class AuthenticatedSafe
- implements DEREncodable
- {
- ContentInfo[] info;
- public AuthenticatedSafe(
- ASN1Sequence seq)
- {
- info = new ContentInfo[seq.size()];
- for (int i = 0; i != info.length; i++)
- {
- info[i] = ContentInfo.getInstance(seq.getObjectAt(i));
- }
- }
- public AuthenticatedSafe(
- ContentInfo[] info)
- {
- this.info = info;
- }
- public ContentInfo[] getContentInfo()
- {
- return info;
- }
- public DERObject getDERObject()
- {
- ASN1EncodableVector v = new ASN1EncodableVector();
- for (int i = 0; i != info.length; i++)
- {
- v.add(info[i]);
- }
- return new BERSequence(v);
- }
- }