Class PEMReader
java.lang.Object
org.jgroups.protocols.kubernetes.pem.PEMReader
This class convert PEM into byte array. The begin marker
is saved and it can be used to determine the type of the
PEM file.
- Author:
- zhang
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]protected voidreadFile()Read the PEM file and save the DER encoded octet stream and begin marker.
-
Field Details
-
PRIVATE_PKCS1_MARKER
- See Also:
-
PRIVATE_PKCS8_MARKER
- See Also:
-
CERTIFICATE_X509_MARKER
- See Also:
-
PUBLIC_X509_MARKER
- See Also:
-
-
Constructor Details
-
PEMReader
- Throws:
IOException
-
PEMReader
- Throws:
IOException
-
PEMReader
- Throws:
IOException
-
-
Method Details
-
getDerBytes
public byte[] getDerBytes() -
getBeginMarker
-
readFile
Read the PEM file and save the DER encoded octet stream and begin marker.- Throws:
IOException
-