Sets the URL for the client. It replaces all existing Chain Core URLs with the provided URL. @param url the URL of the Chain Core or HSM
(String url)
| 632 | * @param url the URL of the Chain Core or HSM |
| 633 | */ |
| 634 | public Builder setURL(String url) throws BadURLException { |
| 635 | try { |
| 636 | this.urls = new ArrayList<URL>(Arrays.asList(new URL(url))); |
| 637 | } catch (MalformedURLException e) { |
| 638 | throw new BadURLException(e.getMessage()); |
| 639 | } |
| 640 | return this; |
| 641 | } |
| 642 | |
| 643 | /** |
| 644 | * Sets the URL for the client. It replaces all existing Chain Core |