public class CachedPEMReader
extends org.bouncycastle.openssl.PEMReader
PEMReader class from the BC library.
It is modified to use the provided PemObject (it is done to optimize the code:
pem is not read twice) as otherwise BC's parsers code would need to be copied.
The reader is bootstraped with the data from the PemObject.
This class interface is the readObject method.
This implementation overrides the
PemReader readPemObject method to return a provided PemObject.
The Reader used by the PemReader is not used.
| Modifier and Type | Field and Description |
|---|---|
protected org.bouncycastle.openssl.PasswordFinder |
myPFinder |
protected org.bouncycastle.util.io.pem.PemObject |
pem |
| Constructor and Description |
|---|
CachedPEMReader(org.bouncycastle.util.io.pem.PemObject pem) |
CachedPEMReader(org.bouncycastle.util.io.pem.PemObject pem,
org.bouncycastle.openssl.PasswordFinder pFinder) |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.util.io.pem.PemObject |
readPemObject()
Generate BC's PemObject from the input stream.
|
close, mark, markSupported, read, read, readLine, ready, reset, skipprotected org.bouncycastle.util.io.pem.PemObject pem
protected org.bouncycastle.openssl.PasswordFinder myPFinder
public CachedPEMReader(org.bouncycastle.util.io.pem.PemObject pem,
org.bouncycastle.openssl.PasswordFinder pFinder)
public CachedPEMReader(org.bouncycastle.util.io.pem.PemObject pem)
public org.bouncycastle.util.io.pem.PemObject readPemObject()
throws IOException
readPemObject in class org.bouncycastle.util.io.pem.PemReaderIOExceptionCopyright © 2012–2013 European Middleware Initiative. All rights reserved.