use of org.bouncycastle.util.io.pem.PemReader in project platformlayer by platformlayer.
the class CsrParser method parsePemFormat.
private PKCS10CertificationRequest parsePemFormat(String data) throws IOException {
PemReader reader = new PemReader(new StringReader(data));
PemObject pemObject = reader.readPemObject();
reader.close();
PKCS10CertificationRequest csr = new PKCS10CertificationRequest(pemObject.getContent());
return csr;
}
Aggregations