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
11 * Defines the enumerated values for possible results of an Authentication
12 * request made from a AAA client to a AAA server.
15 package org.opendaylight.controller.sal.authorization;
17 import java.io.Serializable;
19 public enum AuthResultEnum implements Serializable {
20 AUTH_NONE("AUTH_NOT_ATTEMPTED"), AUTH_ACCEPT("AUTHENTICATION_ACCEPTED"), // request accepted
21 AUTH_REJECT("AUTHENTICATION_REJECTED"), // request rejected
22 AUTH_TIMEOUT("AUTHENTICATION_TIMEDOUT"), // request timeout
23 AUTH_USERNAME_EMPTY("AUTHENTICATION_USERNAME_EMPTY"), // user name is empty
24 AUTH_PASSWORD_EMPTY("AUTHENTICATION_PASSWORD_EMPTY"), // password is empty
25 AUTH_SECRET_EMPTY("AUTHENTICATION_SECRET_EMPTY"), // secret is empty
26 AUTH_COMM_ERROR("AUTHENTICATION_COMM_ERROR"), // communication channel problem
27 AUTH_INVALID_ADDR("AUTHENTICATION_INVALID_ADDR"), // invalid network address
28 AUTH_INVALID_PACKET("AUTHENTICATION_INVALID_PACKET"), // invalid packets or malformed attributes
33 AUTH_ACCEPT_LOC("AUTHENTICATION_ACCEPTED"), // request accepted on local database
34 AUTH_REJECT_LOC("AUTHENTICATION_REJECTED"), // request rejected on local database
35 AUTH_INVALID_LOC_USER("INALID_LOCAL_USER"),
40 AUTHOR_PASS("AUTHORIZATION_PASSED"), AUTHOR_FAIL("AUTHORIZATION_FAILED"), AUTHOR_ERROR(
41 "AUTHORIZATION_SERVER_ERROR");
43 private AuthResultEnum(String name) {
49 public String toString() {