com.hp.autonomy.hod.client.api.authentication.ApiKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-hod-client Show documentation
Show all versions of java-hod-client Show documentation
Java Client for communicating with HP Haven OnDemand
/*
* 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 com.fasterxml.jackson.annotation.JsonCreator;
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;
@JsonCreator
public ApiKey(final String apiKey) {
this.apiKey = apiKey;
}
@Override
public String toString() {
return apiKey;
}
}