FileDocCategorySizeDatePackage
DERUnknownTag.javaAPI DocAzureus 3.0.3.41177Tue Jun 08 05:12:56 BST 2004org.bouncycastle.asn1

DERUnknownTag

public class DERUnknownTag extends DERObject
We insert one of these when we find a tag we don't recognise.

Fields Summary
int
tag
byte[]
data
Constructors Summary
public DERUnknownTag(int tag, byte[] data)

param
tag the tag value.
param
data the octets making up the time.

        this.tag = tag;
        this.data = data;
    
Methods Summary
voidencode(DEROutputStream out)

        out.writeEncoded(tag, data);
    
public booleanequals(java.lang.Object o)

        if ((o == null) || !(o instanceof DERUnknownTag))
        {
            return false;
        }
        
        DERUnknownTag other = (DERUnknownTag)o;
        
        if(tag != other.tag)
        {
			return false;
		}
		
		if(data.length != other.data.length)
		{
			return false;
		}
		
		for(int i = 0; i < data.length; i++) 
		{
			if(data[i] != other.data[i])
			{
				return false;
			}
		}
		
		return true;
	
public byte[]getData()

        return data;
    
public intgetTag()

        return tag;