/*
 * Copyright 2015-2016 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

package com.hp.autonomy.hod.client.api.authentication;

import lombok.Data;

/**
 * An API Key which can be used to obtain a token from HP Haven OnDemand
 */
@Data
public class ApiKey {

    /**
     * @return The API key to be used
     */
    private final String apiKey;

    @Override
    public String toString() {
        return apiKey;
    }

}

@@ -238,16 +238,69 @@
 ation;%0A%0A
+import com.fasterxml.jackson.annotation.JsonCreator;%0A
 import l
@@ -510,16 +510,111 @@
 piKey;%0A%0A
+    @JsonCreator%0A    public ApiKey(final String apiKey) %7B%0A        this.apiKey = apiKey;%0A    %7D%0A%0A
     @Ove

Add explicit @JsonCreator to ApiKey constructor since the latest version of jackson has a bug (not seen it reported yet) which causes it not to find the constructor without the explicit declaration [rev. matthew.gordon]