/** * Sets a Key Identifier and MAC key provided by the CA. Use this if your CA requires * an individual account identification, e.g. your customer number. * * @param kid * Key Identifier * @param encodedMacKey * Base64url encoded MAC key. It will be decoded for your convenience. * @return itself */ public AccountBuilder withKeyIdentifier(String kid, String encodedMacKey) { byte[] encodedKey = AcmeUtils.base64UrlDecode(requireNonNull(encodedMacKey, "encodedMacKey")); return withKeyIdentifier(kid, new HmacKey(encodedKey)); }
/** * Sets a Key Identifier and MAC key provided by the CA. Use this if your CA requires * an individual account identification, e.g. your customer number. * * @param kid * Key Identifier * @param encodedMacKey * Base64url encoded MAC key. It will be decoded for your convenience. * @return itself */ public AccountBuilder withKeyIdentifier(String kid, String encodedMacKey) { byte[] encodedKey = AcmeUtils.base64UrlDecode(requireNonNull(encodedMacKey, "encodedMacKey")); return withKeyIdentifier(kid, new HmacKey(encodedKey)); }