亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? extension.java

?? This is a resource based on j2me embedded,if you dont understand,you can connection with me .
?? JAVA
字號:
/* * @(#)Extension.java	1.23 06/10/10 * * Copyright  1990-2008 Sun Microsystems, Inc. All Rights Reserved.   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER   *    * This program is free software; you can redistribute it and/or   * modify it under the terms of the GNU General Public License version   * 2 only, as published by the Free Software Foundation.    *    * This program is distributed in the hope that it will be useful, but   * WITHOUT ANY WARRANTY; without even the implied warranty of   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   * General Public License version 2 for more details (a copy is   * included at /legal/license.txt).    *    * You should have received a copy of the GNU General Public License   * version 2 along with this work; if not, write to the Free Software   * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA   * 02110-1301 USA    *    * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa   * Clara, CA 95054 or visit www.sun.com if you need additional   * information or have any questions.  * */package sun.security.x509;import java.io.IOException;import java.util.Arrays;import sun.security.util.*;/** * Represent a X509 Extension Attribute. * * <p>Extensions are additional attributes which can be inserted in a X509 * v3 certificate. For example a "Driving License Certificate" could have * the driving license number as a extension. * * <p>Extensions are represented as a sequence of the extension identifier * (Object Identifier), a boolean flag stating whether the extension is to * be treated as being critical and the extension value itself (this is again * a DER encoding of the extension value). * <pre> * ASN.1 definition of Extension: * Extension ::= SEQUENCE { *	ExtensionId	OBJECT IDENTIFIER, *	critical	BOOLEAN DEFAULT FALSE, *	extensionValue	OCTET STRING * } * </pre> * All subclasses need to implement a constructor of the form * <pre> *     <subclass> (Boolean, Object) * <pre> * where the Object is typically an array of DER encoded bytes. * <p> * @author Amit Kapoor * @author Hemma Prafullchandra * @version 1.16 */public class Extension {    protected ObjectIdentifier	extensionId = null;    protected boolean		critical = false;    protected byte[]		extensionValue = null;    /**     * Default constructor.  Used only by sub-classes.     */    public Extension() { }    /**     * Constructs an extension from a DER encoded array of bytes.     */    public Extension(DerValue derVal) throws IOException {        DerInputStream in = derVal.toDerInputStream();        // Object identifier        extensionId = in.getOID();        // If the criticality flag was false, it will not have been encoded.        DerValue val = in.getDerValue();        if (val.tag == DerValue.tag_Boolean) {            critical = val.getBoolean();            // Extension value (DER encoded)            val = in.getDerValue();            extensionValue = val.getOctetString();        } else {            critical = false;            extensionValue = val.getOctetString();        }    }    /**     * Constructs an Extension from individual components of ObjectIdentifier,     * criticality and the DER encoded OctetString.     *     * @param extensionId the ObjectIdentifier of the extension     * @param critical the boolean indicating if the extension is critical     * @param extensionValue the DER encoded octet string of the value.     */    public Extension(ObjectIdentifier extensionId, boolean critical,                     byte[] extensionValue) throws IOException {        this.extensionId = extensionId;        this.critical = critical;        // passed in a DER encoded octet string, strip off the tag        // and length        DerValue inDerVal = new DerValue(extensionValue);        this.extensionValue = inDerVal.getOctetString();    }    /**     * Constructs an Extension from another extension. To be used for     * creating decoded subclasses.     *     * @param ext the extension to create from.     */    public Extension(Extension ext) {        this.extensionId = ext.extensionId;        this.critical = ext.critical;        this.extensionValue = ext.extensionValue;    }    /**     * Write the extension to the DerOutputStream.     *     * @param out the DerOutputStream to write the extension to.     * @exception IOException on encoding errors     */    public void encode(DerOutputStream out) throws IOException {        if (extensionId == null)            throw new IOException("Null OID to encode for the extension!");        if (extensionValue == null)            throw new IOException("No value to encode for the extension!");        DerOutputStream dos = new DerOutputStream();        dos.putOID(extensionId);        if (critical)            dos.putBoolean(critical);        dos.putOctetString(extensionValue);        out.write(DerValue.tag_Sequence, dos);    }    /**     * Returns true if extension is critical.     */    public boolean isCritical() {        return (critical);    }    /**     * Returns the ObjectIdentifier of the extension.     */    public ObjectIdentifier getExtensionId() {        return (extensionId);    }    /**     * Returns the extension value as an byte array for further processing.     * Note, this is the raw DER value of the extension, not the DER     * encoded octet string which is in the certificate.     */    public byte[] getExtensionValue() {        if (extensionValue == null)            return null;        byte[] dup = new byte[extensionValue.length];        System.arraycopy(extensionValue, 0, dup, 0, dup.length);        return (dup);    }    /**     * Returns the Extension in user readable form.     */    public String toString() {        String s = "ObjectId: " + extensionId.toString();        if (critical) {            s += " Criticality=true\n";        } else {            s += " Criticality=false\n";        }        return (s);    }    // Value to mix up the hash    private static final int hashMagic = 31;    /**     * Returns a hashcode value for this Extension.     *     * @return the hashcode value.     */    public int hashCode() {	int h = 0;	if (extensionValue != null) {            byte[] val = extensionValue;            int len = val.length;            while (len > 0)                h += len * val[--len];	}	h = h * hashMagic + extensionId.hashCode();	h = h * hashMagic + (critical?1231:1237);        return h;    }    /**     * Compares this Extension for equality with the specified     * object. If the <code>other</code> object is an     * <code>instanceof</code> <code>Extension</code>, then     * its encoded form is retrieved and compared with the     * encoded form of this Extension.     *     * @param other the object to test for equality with this Extension.     * @return true iff the other object is of type Extension, and the     * criticality flag, object identifier and encoded extension value of      * the two Extensions match, false otherwise.     */    public boolean equals(Object other) {        if (this == other)            return true;        if (!(other instanceof Extension))            return false;	Extension otherExt = (Extension) other;	if (critical != otherExt.critical)	    return false;	if (!extensionId.equals(otherExt.extensionId))	    return false;        return Arrays.equals(extensionValue, otherExt.extensionValue);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一本一道久久香蕉| 欧美三级电影在线看| 91影院在线观看| 欧美一区二区三区在线观看| 亚洲国产精华液网站w| 亚洲成年人影院| 91浏览器在线视频| 久久久久99精品一区| 日本美女一区二区三区视频| 日本久久电影网| 日韩美女啊v在线免费观看| 国产自产高清不卡| 日韩一级完整毛片| 亚洲成年人网站在线观看| 色综合中文字幕国产| 日韩一区二区电影网| 亚洲成av人片在www色猫咪| 91视频.com| 国产精品久久久久一区 | 成人一道本在线| 日韩欧美在线网站| 五月婷婷欧美视频| 欧美日韩精品二区第二页| 亚洲一区二区五区| 99re热视频这里只精品 | 久久奇米777| 久久国产精品一区二区| 制服丝袜成人动漫| 六月婷婷色综合| 欧美一区二区大片| 奇米影视一区二区三区| 日韩一区二区精品| 国产尤物一区二区| 久久久精品黄色| 国产福利不卡视频| 国产精品情趣视频| 一本色道a无线码一区v| 亚洲一区二区影院| 91精品国产全国免费观看| 美女在线视频一区| 久久久久久久久免费| 成熟亚洲日本毛茸茸凸凹| 成人欧美一区二区三区| 在线免费观看日本一区| 亚洲成av人片一区二区三区| 日韩一区二区免费在线电影| 国产精品1区2区| 中文字幕在线不卡视频| 欧美亚洲动漫另类| 蜜臀va亚洲va欧美va天堂 | 福利一区二区在线| 中文字幕日韩欧美一区二区三区| 一本久久综合亚洲鲁鲁五月天| 亚洲图片欧美色图| 精品第一国产综合精品aⅴ| 国产乱人伦偷精品视频不卡 | 日韩国产欧美三级| 2020国产精品自拍| 一本大道综合伊人精品热热| 午夜精品福利一区二区蜜股av| 精品少妇一区二区三区免费观看| 成人一区二区三区在线观看 | 91精品国产综合久久久蜜臀粉嫩 | 欧美久久一区二区| 国产精品正在播放| 一区二区三区国产豹纹内裤在线| 欧美一区日韩一区| 成人污污视频在线观看| 日韩电影在线观看一区| 中文字幕va一区二区三区| 欧美三级中文字幕在线观看| 国产一区欧美一区| 亚洲一级在线观看| 中文字幕 久热精品 视频在线| 欧美性极品少妇| 成人av资源下载| 美腿丝袜亚洲综合| 亚洲国产美女搞黄色| 国产精品嫩草影院av蜜臀| 欧美精品久久久久久久多人混战| 成人午夜短视频| 狠狠色伊人亚洲综合成人| 一区二区三区在线不卡| 国产日韩欧美a| 欧美tickle裸体挠脚心vk| 91久久精品午夜一区二区| 成人免费毛片a| 韩国精品主播一区二区在线观看 | 久久精品一二三| 欧美一区二区三区视频免费| 欧洲生活片亚洲生活在线观看| 懂色av一区二区三区蜜臀| 美腿丝袜在线亚洲一区| 亚洲18影院在线观看| 国产精品资源在线看| 午夜视频一区二区三区| 亚洲精品伦理在线| 日本一区二区三区视频视频| 欧美成人aa大片| 日韩免费高清视频| 欧美精品视频www在线观看| 欧美吻胸吃奶大尺度电影| 色综合欧美在线| 97久久精品人人爽人人爽蜜臀| 国产乱人伦偷精品视频免下载| 麻豆中文一区二区| 美脚の诱脚舐め脚责91| 三级久久三级久久| 人人爽香蕉精品| 日本在线播放一区二区三区| 日欧美一区二区| 男人操女人的视频在线观看欧美| 日日夜夜精品免费视频| 亚洲国产视频一区二区| 亚洲一区二区三区三| 亚洲人成精品久久久久| 一区二区三区欧美视频| 一区二区三区在线影院| 亚洲高清视频在线| 日日夜夜免费精品| 久久69国产一区二区蜜臀| 久久精品国产一区二区三| 国产一区在线观看麻豆| 成人性视频免费网站| 色综合中文综合网| 国产日韩精品久久久| 国产丝袜欧美中文另类| 亚洲视频狠狠干| 亚洲成a天堂v人片| 久久激情五月激情| 国产盗摄女厕一区二区三区| 不卡的av中国片| 色狠狠综合天天综合综合| 欧美三级三级三级爽爽爽| 日韩视频免费观看高清完整版在线观看 | 欧美日韩大陆在线| 91精品国产综合久久久久久漫画| 精品国内二区三区| 国产精品久久久久久久久搜平片| 亚洲黄网站在线观看| 日韩电影一区二区三区| 精品一区二区在线观看| av电影一区二区| 欧美久久久久中文字幕| 久久久亚洲精华液精华液精华液| 国产精品福利影院| 三级欧美在线一区| 成人综合日日夜夜| 欧美调教femdomvk| 久久精品这里都是精品| 一区二区三区中文在线| 国产综合色在线视频区| 在线免费不卡视频| 国产精品白丝av| 亚洲黄色小视频| 日韩美女视频一区| 亚洲曰韩产成在线| 亚洲制服丝袜在线| 视频一区视频二区在线观看| 午夜精品久久久久| 五月天视频一区| 欧美a一区二区| 久草热8精品视频在线观看| 精品一区二区三区视频在线观看 | www国产精品av| 欧美经典一区二区三区| 国产欧美精品一区二区色综合 | 91一区二区在线观看| 91亚洲精品一区二区乱码| 欧洲人成人精品| 日韩三级伦理片妻子的秘密按摩| 亚洲精品在线观| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 91久久精品网| 中文字幕中文字幕在线一区| 美女爽到高潮91| 欧美色图12p| 夜夜操天天操亚洲| 成人中文字幕在线| 久久亚洲精品国产精品紫薇| 丝袜美腿亚洲一区| 91国在线观看| 玉米视频成人免费看| 成人开心网精品视频| 久久亚洲捆绑美女| 久久国产欧美日韩精品| 91精品欧美一区二区三区综合在| 夜夜精品视频一区二区| 不卡欧美aaaaa| 久久精品夜色噜噜亚洲aⅴ| 国内外成人在线| 精品久久久久久久人人人人传媒 | 久久伊人中文字幕| 青青草视频一区| 欧美大片一区二区| 美国十次综合导航| 精品奇米国产一区二区三区| 精品一区二区精品| 天天影视涩香欲综合网| www.亚洲人|