From dad58923f8806c0a973fc5aebcc7560345119236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20K=C3=B6rber?= Date: Sun, 21 Feb 2016 17:23:42 +0100 Subject: [PATCH] Make usage of keypair and keyPair consistent. Fixes issue #11. --- src/site/markdown/usage/index.md | 10 +++++----- src/site/markdown/usage/register.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/site/markdown/usage/index.md b/src/site/markdown/usage/index.md index 814f787b..21a4c998 100644 --- a/src/site/markdown/usage/index.md +++ b/src/site/markdown/usage/index.md @@ -7,8 +7,8 @@ Central part of the communication is a [`Registration`](../apidocs/org/shredzone The first step is to create a Java `KeyPair`, save it somewhere, and then pass it to the constructor of `Registration`: ```java -KeyPair keypair = ... // your key pair -Registration registration = new Registration(keypair); +KeyPair keyPair = ... // your key pair +Registration registration = new Registration(keyPair); ``` You need this `Registration` instance as identifier for almost all API calls. @@ -16,12 +16,12 @@ You need this `Registration` instance as identifier for almost all API calls. Some calls additionally need the registration location URI to be set. You can either set it after construction, or use the constructor that also accepts the location URI: ```java -KeyPair keypair = ... // your key pair +KeyPair keyPair = ... // your key pair URI accountLocationUri = ... // your account's URI, as returned by newRegistration() -Registration registration1 = new Registration(keypair, accountLocationUri); +Registration registration1 = new Registration(keyPair, accountLocationUri); -Registration registration2 = new Registration(keypair); +Registration registration2 = new Registration(keyPair); registration2.setLocation(accountLocationUri); ``` diff --git a/src/site/markdown/usage/register.md b/src/site/markdown/usage/register.md index 07056f40..3f2e6b99 100644 --- a/src/site/markdown/usage/register.md +++ b/src/site/markdown/usage/register.md @@ -8,7 +8,7 @@ This code fragment registers your account with the CA. Optionally you can add co ```java KeyPair keyPair = ... // your account KeyPair -Registration reg = new Registration(keypair); +Registration reg = new Registration(keyPair); reg.addContact("mailto:acme@example.com"); // optional client.newRegistration(reg);