< prev index next >

src/java.security.jgss/share/classes/sun/security/krb5/internal/KDCOptions.java

Print this page




 123     private static final int KDC_OPT_PROXIABLE = 0x10000000;
 124     private static final int KDC_OPT_RENEWABLE_OK = 0x00000010;
 125     private static final int KDC_OPT_FORWARDABLE = 0x40000000;
 126 
 127 
 128     // KDC Options
 129 
 130     public static final int RESERVED        = 0;
 131     public static final int FORWARDABLE     = 1;
 132     public static final int FORWARDED       = 2;
 133     public static final int PROXIABLE       = 3;
 134     public static final int PROXY           = 4;
 135     public static final int ALLOW_POSTDATE  = 5;
 136     public static final int POSTDATED       = 6;
 137     public static final int UNUSED7         = 7;
 138     public static final int RENEWABLE       = 8;
 139     public static final int UNUSED9         = 9;
 140     public static final int UNUSED10        = 10;
 141     public static final int UNUSED11        = 11;
 142     public static final int CNAME_IN_ADDL_TKT = 14;
 143     public static final int CANONICALIZE    = 15;
 144     public static final int RENEWABLE_OK    = 27;
 145     public static final int ENC_TKT_IN_SKEY = 28;
 146     public static final int RENEW           = 30;
 147     public static final int VALIDATE        = 31;
 148 
 149     private static final String[] names = {
 150         "RESERVED",         //0
 151         "FORWARDABLE",      //1;
 152         "FORWARDED",        //2;
 153         "PROXIABLE",        //3;
 154         "PROXY",            //4;
 155         "ALLOW_POSTDATE",   //5;
 156         "POSTDATED",        //6;
 157         "UNUSED7",          //7;
 158         "RENEWABLE",        //8;
 159         "UNUSED9",          //9;
 160         "UNUSED10",         //10;
 161         "UNUSED11",         //11;
 162         null,null,
 163         "CNAME_IN_ADDL_TKT",//14;
 164         "CANONICALIZE",     //15;
 165         null,null,null,null,null,null,null,null,null,null,null,
 166         "RENEWABLE_OK",     //27;
 167         "ENC_TKT_IN_SKEY",  //28;
 168         null,
 169         "RENEW",            //30;
 170         "VALIDATE",         //31;
 171     };
 172 
 173     private boolean DEBUG = Krb5.DEBUG;
 174 
 175     public static KDCOptions with(int... flags) {
 176         KDCOptions options = new KDCOptions();
 177         for (int flag: flags) {
 178             options.set(flag, true);
 179         }
 180         return options;
 181     }
 182 
 183     public KDCOptions() {
 184         super(Krb5.KDC_OPTS_MAX + 1);
 185         setDefault();




 123     private static final int KDC_OPT_PROXIABLE = 0x10000000;
 124     private static final int KDC_OPT_RENEWABLE_OK = 0x00000010;
 125     private static final int KDC_OPT_FORWARDABLE = 0x40000000;
 126 
 127 
 128     // KDC Options
 129 
 130     public static final int RESERVED        = 0;
 131     public static final int FORWARDABLE     = 1;
 132     public static final int FORWARDED       = 2;
 133     public static final int PROXIABLE       = 3;
 134     public static final int PROXY           = 4;
 135     public static final int ALLOW_POSTDATE  = 5;
 136     public static final int POSTDATED       = 6;
 137     public static final int UNUSED7         = 7;
 138     public static final int RENEWABLE       = 8;
 139     public static final int UNUSED9         = 9;
 140     public static final int UNUSED10        = 10;
 141     public static final int UNUSED11        = 11;
 142     public static final int CNAME_IN_ADDL_TKT = 14;

 143     public static final int RENEWABLE_OK    = 27;
 144     public static final int ENC_TKT_IN_SKEY = 28;
 145     public static final int RENEW           = 30;
 146     public static final int VALIDATE        = 31;
 147 
 148     private static final String[] names = {
 149         "RESERVED",         //0
 150         "FORWARDABLE",      //1;
 151         "FORWARDED",        //2;
 152         "PROXIABLE",        //3;
 153         "PROXY",            //4;
 154         "ALLOW_POSTDATE",   //5;
 155         "POSTDATED",        //6;
 156         "UNUSED7",          //7;
 157         "RENEWABLE",        //8;
 158         "UNUSED9",          //9;
 159         "UNUSED10",         //10;
 160         "UNUSED11",         //11;
 161         null,null,
 162         "CNAME_IN_ADDL_TKT",//14;
 163         null,null,null,null,null,null,null,null,null,null,null,null,

 164         "RENEWABLE_OK",     //27;
 165         "ENC_TKT_IN_SKEY",  //28;
 166         null,
 167         "RENEW",            //30;
 168         "VALIDATE",         //31;
 169     };
 170 
 171     private boolean DEBUG = Krb5.DEBUG;
 172 
 173     public static KDCOptions with(int... flags) {
 174         KDCOptions options = new KDCOptions();
 175         for (int flag: flags) {
 176             options.set(flag, true);
 177         }
 178         return options;
 179     }
 180 
 181     public KDCOptions() {
 182         super(Krb5.KDC_OPTS_MAX + 1);
 183         setDefault();


< prev index next >