1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 * 19 */ 20 package org.apache.directory.shared.kerberos.flags; 21 22 23 /** 24 * An enum to describe all the TicketFlag possible values. 25 * 26 * TicketFlags ::= KerberosFlags 27 * -- reserved(0), 28 * -- forwardable(1), 29 * -- forwarded(2), 30 * -- proxiable(3), 31 * -- proxy(4), 32 * -- may-postdate(5), 33 * -- postdated(6), 34 * -- invalid(7), 35 * -- renewable(8), 36 * -- initial(9), 37 * -- pre-authent(10), 38 * -- hw-authent(11), 39 * -- the following are new since 1510 40 * -- transited-policy-checked(12), 41 * -- ok-as-delegate(13) 42 * 43 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 44 */ 45 public enum TicketFlag implements KerberosFlag 46 { 47 /** 48 * Ticket flag - reserved 49 */ 50 RESERVED(0), 51 52 /** 53 * Ticket flag - forwardable 54 */ 55 FORWARDABLE(1), 56 57 /** 58 * Ticket flag - forwarded 59 */ 60 FORWARDED(2), 61 62 /** 63 * Ticket flag - proxiable 64 */ 65 PROXIABLE(3), 66 67 /** 68 * Ticket flag - proxy 69 */ 70 PROXY(4), 71 72 /** 73 * Ticket flag - may be postdated 74 */ 75 MAY_POSTDATE(5), 76 77 /** 78 * Ticket flag - postdated 79 */ 80 POSTDATED(6), 81 /** 82 * Ticket flag - invalid 83 */ 84 INVALID(7), 85 86 /** 87 * Ticket flag - renewable 88 */ 89 RENEWABLE(8), 90 91 /** 92 * Ticket flag - initial 93 */ 94 INITIAL(9), 95 96 /** 97 * Ticket flag - pre-authentication 98 */ 99 PRE_AUTHENT(10), 100 101 /** 102 * Ticket flag - hardware authentication 103 */ 104 HW_AUTHENT(11), 105 106 /** 107 * Ticket flag - transitedEncoding policy checked 108 */ 109 TRANSITED_POLICY_CHECKED(12), 110 111 /** 112 * Ticket flag - OK as delegate 113 */ 114 OK_AS_DELEGATE(13), 115 116 /** 117 * Ticket flag - maximum value 118 */ 119 MAX_VALUE(32); 120 121 // The interned value. 122 private int value; 123 124 125 /** 126 * Class constructor 127 */ 128 private TicketFlag( int value ) 129 { 130 this.value = value; 131 } 132 133 134 /** 135 * @return The value associated with this flag 136 */ 137 public int getValue() 138 { 139 return value; 140 } 141 }