com.verisec.frejaeid.client.beans.authentication.init.InitiateAuthenticationResponse Maven / Gradle / Ivy
package com.verisec.frejaeid.client.beans.authentication.init;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.verisec.frejaeid.client.beans.common.FrejaHttpResponse;
import java.util.Objects;
public class InitiateAuthenticationResponse implements FrejaHttpResponse {
private final String authRef;
@JsonCreator
public InitiateAuthenticationResponse(@JsonProperty(value = "authRef") String authRef) {
this.authRef = authRef;
}
public String getAuthRef() {
return authRef;
}
@Override
public int hashCode() {
return Objects.hash(authRef);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final InitiateAuthenticationResponse other = (InitiateAuthenticationResponse) obj;
if (!Objects.equals(this.authRef, other.authRef)) {
return false;
}
return true;
}
@Override
public String toString() {
return "InitiateAuthenticationResponse{" + "authRef=" + authRef + '}';
}
}