📄 asn1taggedobject.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: ASN1TaggedObject.java
package jit.asn1;
import java.io.IOException;
// Referenced classes of package jit.asn1:
// DERObject, DEREncodable, DEROutputStream
public abstract class ASN1TaggedObject extends DERObject
{
int tagNo;
boolean empty;
boolean explicit;
DEREncodable obj;
public static ASN1TaggedObject getInstance(ASN1TaggedObject obj, boolean explicit)
{
if(explicit)
return (ASN1TaggedObject)obj.getObject();
else
throw new IllegalArgumentException("implicitly tagged tagged object");
}
public ASN1TaggedObject(int tagNo, DEREncodable obj)
{
empty = false;
explicit = true;
this.obj = null;
explicit = true;
this.tagNo = tagNo;
this.obj = obj;
}
public ASN1TaggedObject(boolean explicit, int tagNo, DEREncodable obj)
{
empty = false;
this.explicit = true;
this.obj = null;
this.explicit = explicit;
this.tagNo = tagNo;
this.obj = obj;
}
public boolean equals(Object o)
{
if(o == null || !(o instanceof ASN1TaggedObject))
return false;
ASN1TaggedObject other = (ASN1TaggedObject)o;
if(tagNo != other.tagNo || empty != other.empty || explicit != other.explicit)
return false;
if(obj == null)
{
if(other.obj != null)
return false;
} else
if(!obj.equals(other.obj))
return false;
return true;
}
public int hashCode()
{
int code = tagNo;
if(obj != null)
code ^= obj.hashCode();
return code;
}
public int getTagNo()
{
return tagNo;
}
public boolean isExplicit()
{
return explicit;
}
public boolean isEmpty()
{
return empty;
}
public DERObject getObject()
{
if(obj != null)
return obj.getDERObject();
else
return null;
}
abstract void encode(DEROutputStream deroutputstream)
throws IOException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -