DistributionPointName.java
资源名称:security.rar [点击查看]
上传用户:lior1029
上传日期:2013-05-07
资源大小:209k
文件大小:1k
源码类别:
CA认证
开发平台:
Java
- package org.bouncycastle.asn1.x509;
- import org.bouncycastle.asn1.*;
- public class DistributionPointName
- implements DEREncodable
- {
- DEREncodable name;
- int type;
- public static final int FULL_NAME = 0;
- public static final int NAME_RELATIVE_TO_CRL_ISSUER = 1;
- public DistributionPointName(
- int type,
- DEREncodable name)
- {
- this.type = type;
- this.name = name;
- }
- /**
- * <pre>
- * DistributionPointName ::= CHOICE {
- * fullName [0] GeneralNames,
- * nameRelativeToCRLIssuer [1] RelativeDistinguishedName
- * }
- * </pre>
- */
- public DERObject getDERObject()
- {
- if (name instanceof ASN1Sequence)
- {
- return new DERTaggedObject(true, type, name);
- }
- else
- {
- return new DERTaggedObject(false, type, name);
- }
- }
- }