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

📄 pkifailureinfo.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:   PKIFailureInfo.java

package jit.timestamp;

import jit.asn1.DERBitString;

public class PKIFailureInfo extends DERBitString
{

    public static final int failInfo_BAD_ALG = 128;
    public static final int failInfo_BAD_REQUEST = 32;
    public static final int failInfo_BAD_DATAFORMAT = 4;
    public static final int failInfo_TIME_NOTAVAILABLE = 512;
    public static final int failInfo_UNACCEPTED_POLICY = 256;
    public static final int failInfo_UNACCEPTED_EXTENSION = 0x800000;
    public static final int failInfo_ADDINFO_NOT_AVAILABLE = 0x400000;
    public static final int failInfo_SYSTEM_FAILURE = 0x40000000;

    public PKIFailureInfo(int failInfo)
    {
        super(DERBitString.getBytes(failInfo), DERBitString.getPadBits(failInfo));
    }

    public PKIFailureInfo(DERBitString failInfo)
    {
        super(failInfo.getBytes(), failInfo.getPadBits());
    }

    public boolean[] getFailInfo()
    {
        byte bFailInfo[] = getBytes();
        int length = bFailInfo.length * 8 - getPadBits();
        boolean failInfo[] = new boolean[length >= 26 ? length : 26];
        for(int i = 0; i != length; i++)
            failInfo[i] = (bFailInfo[i / 8] & 128 >>> i % 8) != 0;

        return failInfo;
    }

    static 
    {
        failInfo_BAD_ALG = 128;
        failInfo_BAD_REQUEST = 32;
        failInfo_BAD_DATAFORMAT = 4;
        failInfo_TIME_NOTAVAILABLE = 512;
        failInfo_UNACCEPTED_POLICY = 256;
        failInfo_UNACCEPTED_EXTENSION = 0x800000;
        failInfo_ADDINFO_NOT_AVAILABLE = 0x400000;
        failInfo_SYSTEM_FAILURE = 0x40000000;
    }
}

⌨️ 快捷键说明

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