/* * ****************************************************************************** * Cloud Foundry Copyright (c) [2009-2015] Pivotal Software, Inc. All Rights Reserved. * * This product is licensed to you under the Apache License, Version 2.0 (the "License"). * You may not use this product except in compliance with the License. * * This product includes a number of subcomponents with * separate copyright notices and license terms. Your use of these * subcomponents is subject to the terms and conditions of the * subcomponent's license, as noted in the LICENSE file. * ****************************************************************************** */ package org.cloudfoundry.identity.uaa.login; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE) public class AuthenticationResponse { private String error; private String username; private String origin; @JsonProperty("user_id") private String userId; private String email; public void setError(String error) { this.error = error; } public String getError() { return error; } public void setUsername(String username) { this.username = username; } public String getUsername() { return username; } public void setOrigin(String origin) { this.origin = origin; } public String getOrigin() { return origin; } public void setUserId(String userId) { this.userId = userId; } public String getUserId() { return userId; } public void setEmail(String email) { this.email = email; } public String getEmail() { return email; } }