3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.controller.usermanager.internal;
12 import java.io.Serializable;
14 import org.apache.commons.lang3.builder.EqualsBuilder;
15 import org.apache.commons.lang3.builder.HashCodeBuilder;
18 * Configuration Java Object which represents a Remote AAA server configuration
19 * information for User Manager.
21 public class ServerConfig implements Serializable {
22 private static final long serialVersionUID = 1L;
24 // Order matters: JSP file expects following fields in the following order
26 private String secret;
27 private String protocol;
29 public ServerConfig() {
32 public String getAddress() {
36 public String getSecret() {
40 public String getProtocol() {
45 public int hashCode() {
46 return HashCodeBuilder.reflectionHashCode(this);
50 public boolean equals(Object obj) {
51 return EqualsBuilder.reflectionEquals(this, obj);
54 public boolean isValid() {
55 return (ip != null && !ip.isEmpty() && secret != null && !secret