public static X500Name x500PrincipalToX500Name(X500Principal principal){
  return X500Name.getInstance(KseX500NameStyle.INSTANCE,principal.getEncoded());
}

public static X500Name x500PrincipalToX500Name ( X500Principal principal ) { return X500Name . getInstance ( KseX500NameStyle . INSTANCE , principal . getEncoded ( ) ) ; }
convert an x . 500 principal to an x . 500 name .
