Modifier and Type | Class and Description |
---|---|
static class |
PemUtil.Label
Predefined label types identifying PEM encoded structures as defined in RFC
7468.
|
Modifier and Type | Method and Description |
---|---|
static List<byte[]> |
read(PemUtil.Label label,
byte[] data)
Reads the specified PEM encoded data and converts it into a list of DERs.
|
static List<byte[]> |
read(PemUtil.Label label,
byte[] data,
int offset,
int length)
Reads the specified PEM encoded data and converts it into a list of DERs.
|
static List<byte[]> |
read(PemUtil.Label label,
File file)
Reads the PEM encoded data from the specified file and converts it into a
list of DERs.
|
static List<byte[]> |
read(PemUtil.Label label,
InputStream in)
Reads the PEM encoded data from the specified input stream and converts it
into a list of DERs.
|
static List<byte[]> |
read(String label,
byte[] data)
Reads the specified PEM encoded data and converts it into a list of DERs.
|
static List<byte[]> |
read(String label,
byte[] data,
int offset,
int length)
Reads the specified PEM encoded data and converts it into a list of DERs.
|
static List<byte[]> |
read(String label,
File file)
Reads the PEM encoded data from the specified file and converts it into a
list of DERs.
|
static List<byte[]> |
read(String label,
InputStream in)
Reads the PEM encoded data from the specified input stream and converts it
into a list of DERs.
|
public static List<byte[]> read(String label, byte[] data)
label
- the label identifying the PEM encoded structure to readdata
- the PEM encoded datapublic static List<byte[]> read(String label, byte[] data, int offset, int length)
label
- the label identifying the PEM encoded structure to readdata
- the PEM encoded dataoffset
- offset within the array of the first byte to be convertedlength
- number of bytes to be convertedpublic static List<byte[]> read(PemUtil.Label label, byte[] data)
label
- the predefined label identifying the PEM encoded structure to
readdata
- the PEM encoded datapublic static List<byte[]> read(PemUtil.Label label, byte[] data, int offset, int length)
label
- the predefined label identifying the PEM encoded structure to
readdata
- the PEM encoded dataoffset
- offset within the array of the first byte to be convertedlength
- number of bytes to be convertedpublic static List<byte[]> read(String label, InputStream in) throws IOException
label
- the label identifying the PEM encoded structure to readin
- the input stream with PEM encoded dataIOException
- if a failure occurred while reading from the input
streampublic static List<byte[]> read(PemUtil.Label label, InputStream in) throws IOException
label
- the predefined label identifying the PEM encoded structure to
readin
- the input stream with PEM encoded dataIOException
- if a failure occurred while reading from the input
streampublic static List<byte[]> read(String label, File file) throws IOException
label
- the label identifying the PEM encoded structure to readfile
- the file with PEM encoded dataIOException
- if a failure occurred while reading the filepublic static List<byte[]> read(PemUtil.Label label, File file) throws IOException
label
- the predefined label identifying the PEM encoded structure to
readfile
- the file with PEM encoded dataIOException
- if a failure occurred while reading the fileCopyright © 2017–2022 SNF4J.ORG. All rights reserved.