Bug 1029: Remove dead code: samples/clustersession
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / authorization / AuthResultEnum.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
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
8  */
9
10 /**
11  * Defines the enumerated values for possible results of an Authentication
12  * request made from a AAA client to a AAA server.
13  */
14
15 package org.opendaylight.controller.sal.authorization;
16
17 import java.io.Serializable;
18
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
29
30     /*
31      * Local AAA values
32      */
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"),
36
37     /*
38      * Authorization
39      */
40     AUTHOR_PASS("AUTHORIZATION_PASSED"), AUTHOR_FAIL("AUTHORIZATION_FAILED"), AUTHOR_ERROR(
41             "AUTHORIZATION_SERVER_ERROR");
42
43     private AuthResultEnum(String name) {
44         this.name = name;
45     }
46
47     private String name;
48
49     public String toString() {
50         return name;
51     }
52 }