001/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 * 019 */ 020package org.apache.directory.shared.kerberos.flags; 021 022 023/** 024 * 025 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 026 * 027 */ 028public interface KerberosFlags 029{ 030 /** 031 * Returns the int value associated with the flags 032 */ 033 int getIntValue(); 034 035 036 /** 037 * Check if a flag is set for the actual value 038 * 039 * @param flag The flag to check 040 * @return True if the flag is set in the list of flags 041 */ 042 boolean isFlagSet( KerberosFlag flag ); 043 044 045 /** 046 * Check if a flag is set 047 * @param flag The flags to test 048 * @return True if the flag is set in the list of flags 049 */ 050 boolean isFlagSet( int flag ); 051 052 053 /** 054 * Set a flag in a list of flags 055 * 056 * @param flag The flag to set 057 */ 058 void setFlag( KerberosFlag flag ); 059 060 061 /** 062 * Set a flag in a list of flags 063 * 064 * @param flag The flag to set 065 */ 066 void setFlag( int flag ); 067 068 069 /** 070 * clear a flag in a list of flags 071 * 072 * @param flag The flag to set 073 */ 074 void clearFlag( KerberosFlag flag ); 075 076 077 /** 078 * clear a flag in a list of flags 079 * 080 * @param flag The flag to set 081 */ 082 void clearFlag( int flag ); 083}