eu.emi.security.authn.x509.helpers
public class CachedPEMReader extends 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 PasswordFinder |
myPFinder |
protected PemObject |
pem |
Constructor and Description |
---|
CachedPEMReader(PemObject pem) |
CachedPEMReader(PemObject pem,
PasswordFinder pFinder) |
Modifier and Type | Method and Description |
---|---|
PemObject |
readPemObject()
Generate BC's PemObject from the input stream.
|
readObject
close, mark, markSupported, read, read, readLine, ready, reset, skip
protected PemObject pem
protected PasswordFinder myPFinder
public CachedPEMReader(PemObject pem, PasswordFinder pFinder)
public CachedPEMReader(PemObject pem)
public PemObject readPemObject() throws IOException
readPemObject
in class PemReader
IOException
Copyright © 2012-2013 European Middleware Initiative. All Rights Reserved.