⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 distributionpointname.java

📁 进行与数字证书相关开发必须的java源码
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   DistributionPointName.java

package jit.asn1.x509;

import jit.asn1.*;

// Referenced classes of package jit.asn1.x509:
//            GeneralNames

public class DistributionPointName extends ASN1Encodable
{

    DEREncodable name;
    int type;
    public static final int FULL_NAME = 0;
    public static final int NAME_RELATIVE_TO_CRL_ISSUER = 1;

    public static DistributionPointName getInstance(ASN1TaggedObject obj, boolean explicit)
    {
        return getInstance(ASN1TaggedObject.getInstance(obj, explicit));
    }

    public static DistributionPointName getInstance(Object obj)
    {
        if(obj == null || (obj instanceof DistributionPointName))
            return (DistributionPointName)obj;
        if(obj instanceof ASN1TaggedObject)
            return new DistributionPointName((ASN1TaggedObject)obj);
        else
            throw new IllegalArgumentException("unknown object in factory");
    }

    public DistributionPointName(int type, DEREncodable name)
    {
        this.type = type;
        this.name = name;
    }

    public DistributionPointName(ASN1TaggedObject obj)
    {
        type = obj.getTagNo();
        if(type == 0)
            name = ASN1Sequence.getInstance(obj, false);
        else
            name = ASN1Set.getInstance(obj, false);
    }

    public GeneralNames getFullName()
    {
        if(type == 0)
        {
            ASN1Sequence seq = (ASN1Sequence)name.getDERObject();
            GeneralNames fullName = new GeneralNames(seq);
            return fullName;
        } else
        {
            return null;
        }
    }

    public ASN1Set getNameRelative2CRLIssuer()
    {
        if(type != 0)
            return (ASN1Set)name.getDERObject();
        else
            return null;
    }

    public DERObject toASN1Object()
    {
        ASN1Sequence seq = (ASN1Sequence)name.getDERObject();
        DERObject derObj = (DERObject)seq.getObjectAt(0);
        return new DERTaggedObject(true, type, derObj);
    }

    static 
    {
        FULL_NAME = 0;
        NAME_RELATIVE_TO_CRL_ISSUER = 1;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -