Package org.bouncycastle.asn1
Class DLPrivate
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.ASN1Primitive
-
- org.bouncycastle.asn1.ASN1Private
-
- org.bouncycastle.asn1.DLPrivate
-
- All Implemented Interfaces:
ASN1Encodable
,Encodable
public class DLPrivate extends ASN1Private
A DER encoding version of an private object.
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.asn1.ASN1Private
isConstructed, octets, tag
-
-
Constructor Summary
Constructors Constructor Description DLPrivate(boolean constructed, int tag, ASN1Encodable object)
Create an private object with the tagging style given by the value of constructed.DLPrivate(int tag, byte[] octets)
Create an private object from the passed in data.DLPrivate(int tag, ASN1Encodable object)
Create an private object with a tagging of explicit/constructed.DLPrivate(int tagNo, ASN1EncodableVector vec)
Create a private object which is marked as constructed
-
Method Summary
-
Methods inherited from class org.bouncycastle.asn1.ASN1Private
getContents, getInstance, getLengthOfHeader, getObject, getObject, getPrivateTag, hashCode, isConstructed, toString
-
Methods inherited from class org.bouncycastle.asn1.ASN1Primitive
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive
-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
getEncoded, getEncoded, hasEncodedTagValue
-
-
-
-
Constructor Detail
-
DLPrivate
public DLPrivate(int tag, byte[] octets)
Create an private object from the passed in data. This will assume the data does not represent a constructed object.- Parameters:
tag
- the tag number for this object.octets
- the encoding of the object's body.
-
DLPrivate
public DLPrivate(int tag, ASN1Encodable object) throws java.io.IOException
Create an private object with a tagging of explicit/constructed.- Parameters:
tag
- the tag number for this object.object
- the object to be contained.- Throws:
java.io.IOException
-
DLPrivate
public DLPrivate(boolean constructed, int tag, ASN1Encodable object) throws java.io.IOException
Create an private object with the tagging style given by the value of constructed.- Parameters:
constructed
- true if the object is constructed.tag
- the tag number for this object.object
- the object to be contained.- Throws:
java.io.IOException
-
DLPrivate
public DLPrivate(int tagNo, ASN1EncodableVector vec)
Create a private object which is marked as constructed- Parameters:
tagNo
- the tag number for this object.vec
- the objects making up the private object.
-
-