FileDocCategorySizeDatePackage
DerObject.javaAPI DocBouncy Castle Crypto API 1.41 (Java 1.5)1442Wed Oct 01 10:55:28 BST 2008org.bouncycastle.sasn1

DerObject

public class DerObject extends Asn1Object
deprecated
use corresponsding classes in org.bouncycastle.asn1.

Fields Summary
private byte[]
_content
Constructors Summary
DerObject(int baseTag, int tagNumber, byte[] content)

        super(baseTag, tagNumber, null);
        
        this._content = content;
    
Methods Summary
voidencode(java.io.OutputStream out)

        DerGenerator dGen = new BasicDerGenerator(out);
        
        dGen.writeDerEncoded(_baseTag | _tagNumber, _content);
    
public byte[]getEncoded()

        ByteArrayOutputStream bOut = new ByteArrayOutputStream();
        
        this.encode(bOut);

        return bOut.toByteArray();
    
public java.io.InputStreamgetRawContentStream()

        return new ByteArrayInputStream(_content);
    
public intgetTagNumber()

        return _tagNumber;