📄 othername.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: OtherName.java
package jit.asn1.x509;
import jit.asn1.*;
public class OtherName
implements DEREncodable
{
private DERObjectIdentifier typeID;
private DEREncodable value;
public OtherName(ASN1Sequence seq)
{
typeID = null;
value = null;
typeID = DERObjectIdentifier.getInstance(seq.getObjectAt(0));
value = ((DERTaggedObject)seq.getObjectAt(1)).getObject();
}
public OtherName(DERObjectIdentifier _typeID, DEREncodable _value)
throws Exception
{
typeID = null;
value = null;
if(_typeID == null)
throw new Exception("typeID of OtherName must not be null");
typeID = _typeID;
if(_value == null)
{
throw new Exception("value of OtherName must not be null");
} else
{
value = _value;
return;
}
}
public static OtherName getInstance(ASN1TaggedObject o, boolean explicit)
{
return new OtherName(ASN1Sequence.getInstance(o, explicit));
}
public static OtherName getInstance(Object obj)
{
if(obj == null || (obj instanceof OtherName))
return (OtherName)obj;
if(obj instanceof ASN1TaggedObject)
return getInstance((ASN1TaggedObject)obj, false);
if(obj instanceof ASN1Sequence)
return new OtherName(ASN1Sequence.getInstance(obj));
else
throw new IllegalArgumentException("unknown object in factory:".concat(String.valueOf(String.valueOf(obj.getClass().getName()))));
}
public DERObjectIdentifier getTypeID()
{
return typeID;
}
public DEREncodable getValue()
{
return value;
}
public DERObject getDERObject()
{
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(typeID);
v.add(value);
return new DERSequence(v);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -