Code example for X500Principal

Methods: getEncoded

0
    static X509Principal convertPrincipal( 
        X500Principal principal)
    { 
        try 
        { 
            return new X509Principal(principal.getEncoded());
        } 
        catch (IOException e)
        { 
            throw new IllegalArgumentException("cannot convert principal");
        } 
    } 
 
    static class Implementation 
    { 
        Object      engine;
        Provider provider;
 
        Implementation( 
            Object      engine,
            Provider    provider)