Search in sources :

Example 1 with CsrParser

use of org.platformlayer.crypto.CsrParser in project platformlayer by platformlayer.

the class Csr method parse.

public static Csr parse(String encoded) {
    CsrParser parser = new CsrParser();
    PKCS10CertificationRequest csr = parser.parse(encoded);
    if (csr == null) {
        throw new IllegalArgumentException("Cannot parse CSR");
    }
    return new Csr(csr);
}
Also used : PKCS10CertificationRequest(org.bouncycastle.pkcs.PKCS10CertificationRequest) CsrParser(org.platformlayer.crypto.CsrParser)

Aggregations

PKCS10CertificationRequest (org.bouncycastle.pkcs.PKCS10CertificationRequest)1 CsrParser (org.platformlayer.crypto.CsrParser)1