public static X500Name getX500Name ( PrincipalIndentifier principal ) { if ( principal instanceof BcPrincipalIdentifier ) { return ( ( BcPrincipalIdentifier ) principal ) . getX500Name ( ) ; } else { return new X500Name ( principal . getName ( ) ) ; } }
Convert principal identifier to X . 500 name .