Bouncy Castle Cryptography Library 1.69

org.bouncycastle.asn1
Class BERPrivateParser

java.lang.Object
  |
  +--org.bouncycastle.asn1.BERPrivateParser
All Implemented Interfaces:
ASN1Encodable, ASN1PrivateParser, InMemoryRepresentable

public class BERPrivateParser
extends java.lang.Object
implements ASN1PrivateParser

A parser for indefinite-length ASN.1 Private objects.


Method Summary
 ASN1Primitive getLoadedObject()
          Return an in-memory, encodable, representation of the private object.
 ASN1Encodable readObject()
          Return the object contained in this private object,
 ASN1Primitive toASN1Primitive()
          Return a BERPrivate representing this parser and its contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readObject

public ASN1Encodable readObject()
                         throws java.io.IOException
Return the object contained in this private object,
Specified by:
readObject in interface ASN1PrivateParser
Returns:
the contained object.
Throws:
java.io.IOException - if the underlying stream cannot be read, or does not contain an ASN.1 encoding.

getLoadedObject

public ASN1Primitive getLoadedObject()
                              throws java.io.IOException
Return an in-memory, encodable, representation of the private object.
Specified by:
getLoadedObject in interface InMemoryRepresentable
Returns:
a BERPrivate.
Throws:
java.io.IOException - if there is an issue loading the data.

toASN1Primitive

public ASN1Primitive toASN1Primitive()
Return a BERPrivate representing this parser and its contents.
Specified by:
toASN1Primitive in interface ASN1Encodable
Returns:
a BERPrivate

Bouncy Castle Cryptography Library 1.69