Code example for X500Principal

Methods: getEncoded

    private static X509Name convertName( 
        X500Principal    name)
            return new X509Principal(name.getEncoded());
        catch (IOException e)
            throw new IllegalArgumentException("can't convert name");
     * create a PKCS10 certfication request using the BC provider. 
    public PKCS10CertificationRequest( 
        String              signatureAlgorithm,
        X500Principal       subject,
        PublicKey           key,
Stop searching for code, let great code find you!  Add Codota to your java IDE