mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

lutoff
02.03.2007 fb604ecfb7ffdd7e2fb65422b5f16cedf3f6ebea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License, Version 1.0 only
 * (the "License").  You may not use this file except in compliance
 * with the License.
 *
 * You can obtain a copy of the license at
 * trunk/opends/resource/legal-notices/OpenDS.LICENSE
 * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at
 * trunk/opends/resource/legal-notices/OpenDS.LICENSE.  If applicable,
 * add the following below this CDDL HEADER, with the fields enclosed
 * by brackets "[]" replaced with your own identifying information:
 *      Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 *
 *
 *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
 */
package org.opends.server.tools;
 
 
 
/**
 * This class defines a number of constants used in one or more Directory Server
 * tools.
 */
public class ToolConstants
{
  /**
   * The name of the SASL property that can be used to provide the
   * authentication ID for the bind.
   */
  public static final String SASL_PROPERTY_AUTHID = "authid";
 
 
 
  /**
   * The name of the SASL property that can be used to provide the authorization
   * ID for the bind.
   */
  public static final String SASL_PROPERTY_AUTHZID = "authzid";
 
 
 
  /**
   * The name of the SASL property that can be used to provide the digest URI
   * for the bind.
   */
  public static final String SASL_PROPERTY_DIGEST_URI = "digest-uri";
 
 
 
  /**
   * The name of the SASL property that can be used to provide the KDC for use
   * in Kerberos authentication.
   */
  public static final String SASL_PROPERTY_KDC = "kdc";
 
 
 
  /**
   * The name of the SASL property that can be used to provide the quality of
   * protection for the bind.
   */
  public static final String SASL_PROPERTY_QOP = "qop";
 
 
 
  /**
   * The name of the SASL property that can be used to provide the realm for the
   * bind.
   */
  public static final String SASL_PROPERTY_REALM = "realm";
 
 
 
  /**
   * The name of the SASL property that can be used to provide trace information
   * for a SASL ANONYMOUS request.
   */
  public static final String SASL_PROPERTY_TRACE = "trace";
 
 
  /**
   * The value for the short option configClass.
   */
  public static final char OPTION_SHORT_CONFIG_CLASS = 'C';
 
  /**
   * The value for the long option configClass.
   */
  public static final String OPTION_LONG_CONFIG_CLASS = "configClass";
 
  /**
   * The placeholder value of configClass that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_CONFIG_CLASS = "{configClass}";
 
  /**
   * The value for the short option hostname.
   */
  public static final char OPTION_SHORT_HOST = 'h';
 
  /**
   * The value for the long option hostname.
   */
  public static final String OPTION_LONG_HOST = "hostname";
 
  /**
   * The placeholder value of hostname that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_HOST = "{host}";
 
  /**
   * The value for the short option port.
   */
  public static final char OPTION_SHORT_PORT = 'p';
 
  /**
   * The value for the long option port.
   */
  public static final String OPTION_LONG_PORT = "port";
 
  /**
   * The placeholder value of port that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_PORT = "{port}";
 
  /**
   * The value for the short option useSSL.
   */
  public static final char OPTION_SHORT_USE_SSL = 'Z';
 
  /**
   * The value for the long option useSSL.
   */
  public static final String OPTION_LONG_USE_SSL = "useSSL";
 
  /**
   * The value for the short option baseDN.
   */
  public static final char OPTION_SHORT_BASEDN = 'b';
 
  /**
   * The value for the long option baseDN.
   */
  public static final String OPTION_LONG_BASEDN = "baseDN";
 
  /**
   * The placeholder value of baseDN that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_BASEDN = "{baseDN}";
 
  /**
   * The value for the short option rootUserDN.
   */
  public static final char OPTION_SHORT_ROOT_USER_DN = 'D';
 
  /**
   * The value for the long option rootUserDN.
   */
  public static final String OPTION_LONG_ROOT_USER_DN = "rootUserDN";
 
  /**
   * The placeholder value of hostname that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_ROOT_USER_DN = "{rootUserDN}";
 
  /**
   * The value for the short option bindDN.
   */
  public static final char OPTION_SHORT_BINDDN = 'D';
 
  /**
   * The value for the long option bindDN.
   */
  public static final String OPTION_LONG_BINDDN = "bindDN";
 
  /**
   * The placeholder value of bindDN that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_BINDDN = "{bindDN}";
 
  /**
   * The value for the short option bindPassword.
   */
  public static final char OPTION_SHORT_BINDPWD = 'w';
 
  /**
   * The value for the long option bindPassword.
   */
  public static final String OPTION_LONG_BINDPWD = "bindPassword";
 
  /**
   * The placeholder value of bindPassword that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_BINDPWD = "{bindPassword}";
 
  /**
   * The value for the short option bindPasswordFile.
   */
  public static final char OPTION_SHORT_BINDPWD_FILE = 'j';
 
  /**
   * The value for the long option bindPasswordFile.
   */
  public static final String OPTION_LONG_BINDPWD_FILE = "bindPasswordFile";
 
  /**
   * The placeholder value of bindPasswordFile that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_BINDPWD_FILE = "{bindPasswordFile}";
 
 
  /**
   * The value for the short option compress.
   */
  public static final char OPTION_SHORT_COMPRESS = 'c';
 
  /**
   * The value for the long option compress.
   */
  public static final String OPTION_LONG_COMPRESS = "compress";
 
  /**
   * The value for the short option filename.
   */
  public static final char OPTION_SHORT_FILENAME = 'f';
 
  /**
   * The value for the long option filename.
   */
  public static final String OPTION_LONG_FILENAME = "filename";
 
  /**
   * The placeholder value of filename that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_FILENAME = "{filename}";
 
  /**
   * The value for the short option ldifFile.
   */
  public static final char OPTION_SHORT_LDIF_FILE = 'l';
 
  /**
   * The value for the long option ldifFile.
   */
  public static final String OPTION_LONG_LDIF_FILE = "ldifFile";
 
  /**
   * The placeholder value of ldifFile that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_LDIF_FILE = "{ldifFile}";
 
  /**
   * The value for the short option useStartTLS.
   */
  public static final char OPTION_SHORT_START_TLS = 'q';
 
  /**
   * The value for the long option useStartTLS.
   */
  public static final String OPTION_LONG_START_TLS = "useStartTLS";
 
  /**
   * The value for the short option randomSeed.
   */
  public static final char OPTION_SHORT_RANDOM_SEED = 's';
 
  /**
   * The value for the long option randomSeed.
   */
  public static final String OPTION_LONG_RANDOM_SEED = "randomSeed";
 
  /**
   * The placeholder value of randomSeed that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_RANDOM_SEED = "{seed}";
 
  /**
   * The value for the short option keyStorePath.
   */
  public static final char OPTION_SHORT_KEYSTOREPATH = 'K';
 
  /**
   * The value for the long option keyStorePath.
   */
  public static final String OPTION_LONG_KEYSTOREPATH = "keyStorePath";
 
  /**
   * The placeholder value of keyStorePath that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_KEYSTOREPATH = "{keyStorePath}";
 
  /**
   * The value for the short option trustStorePath.
   */
  public static final char OPTION_SHORT_TRUSTSTOREPATH = 'P';
 
  /**
   * The value for the long option trustStorePath.
   */
  public static final String OPTION_LONG_TRUSTSTOREPATH = "trustStorePath";
 
  /**
   * The placeholder value of trustStorePath that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_TRUSTSTOREPATH = "{trustStorePath}";
 
  /**
   * The value for the short option keyStorePassword.
   */
  public static final char OPTION_SHORT_KEYSTORE_PWD = 'W';
 
  /**
   * The value for the long option keyStorePassword.
   */
  public static final String OPTION_LONG_KEYSTORE_PWD = "keyStorePassword";
 
  /**
   * The placeholder value of keyStorePassword that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_KEYSTORE_PWD = "{keyStorePassword}";
 
  /**
   * The value for the long option trustStorePassword.
   */
  public static final String OPTION_LONG_TRUSTSTORE_PWD = "trustStorePassword";
 
  /**
   * The placeholder value of trustStorePassword that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_TRUSTSTORE_PWD =
    "{trustStorePassword}";
 
  /**
   * The value for the short option keyStorePasswordFile .
   */
  public static final char OPTION_SHORT_KEYSTORE_PWD_FILE = 'u';
 
  /**
   * The value for the long option keyStorePasswordFile .
   */
  public static final String OPTION_LONG_KEYSTORE_PWD_FILE =
    "keyStorePasswordFile";
 
  /**
   * The placeholder value of keyStorePasswordFile that will be
   * displayed in usage information.
   */
  public static final String OPTION_VALUE_KEYSTORE_PWD_FILE = "{path}";
 
  /**
   * The value for the short option keyStorePasswordFile .
   */
  public static final char OPTION_SHORT_TRUSTSTORE_PWD_FILE = 'U';
 
  /**
   * The value for the long option keyStorePasswordFile .
   */
  public static final String OPTION_LONG_TRUSTSTORE_PWD_FILE =
    "TrustStorePasswordFile";
 
  /**
   * The placeholder value of keyStorePasswordFile that will be
   * displayed in usage information.
   */
  public static final String OPTION_VALUE_TRUSTSTORE_PWD_FILE = "{path}";
 
  /**
   * The value for the long option assertionFilter .
   */
  public static final String OPTION_LONG_ASSERTION_FILE = "assertionFilter";
 
  /**
   * The placeholder value of assertionFilter  that will be displayed in usage
   * information.
   */
  public static final String OPTION_VALUE_ASSERTION_FILE = "{filter}";
 
  /**
   * The value for the short option dry-run.
   */
  public static final char OPTION_SHORT_DRYRUN = 'n';
 
  /**
   * The value for the long option dry-run.
   */
  public static final String OPTION_LONG_DRYRUN = "dry-run";
 
  /**
   * The value for the short option help.
   */
  public static final char OPTION_SHORT_HELP = 'H';
 
  /**
   * The value for the long option help.
   */
  public static final String OPTION_LONG_HELP = "help";
 
  /**
   * The value for the long option cli.
   */
  public static final String OPTION_LONG_CLI = "cli";
 
  /**
   * The value for the short option proxyAs.
   */
  public static final char OPTION_SHORT_PROXYAUTHID = 'Y';
 
  /**
   * The value for the long option proxyAs.
   */
  public static final String OPTION_LONG_PROXYAUTHID = "proxyAs";
 
  /**
   * The placeholder value of proxyAs  that will be
   * displayed in usage information.
   */
  public static final String OPTION_VALUE_PROXYAUTHID = "{authzID}";
 
  /**
   * The value for the short option saslOption.
   */
  public static final char OPTION_SHORT_SASLOPTION = 'o';
 
  /**
   * The value for the long option saslOption.
   */
  public static final String OPTION_LONG_SASLOPTION = "saslOption";
 
  /**
   * The placeholder value of saslOption that will be
   * displayed in usage information.
   */
  public static final String OPTION_VALUE_SASLOPTION = "{name=value}";
 
  /**
   * The value for the short option geteffectiverights control authzid.
   */
   public static final char OPTION_SHORT_EFFECTIVERIGHTSUSER = 'g';
 
  /**
   * The value for the long option geteffectiverights  control authzid.
   */
   public static final String OPTION_LONG_EFFECTIVERIGHTSUSER =
          "getEffectiveRightsAuthzid";
 
  /**
   * The value for the short option geteffectiveights control attributes.
   */
   public static final char OPTION_SHORT_EFFECTIVERIGHTSATTR = 'e';
 
  /**
   * The value for the long option geteffectiverights control specific
   * attribute list.
   */
   public static final String OPTION_LONG_EFFECTIVERIGHTSATTR =
          "getEffectiveRightsAttribute";
 
   /**
    * The value for the short option protocol version attributes.
    */
    public static final char OPTION_SHORT_PROTOCOL_VERSION = 'V';
 
   /**
    * The value for the long option protocol version
    * attribute.
    */
    public static final String OPTION_LONG_PROTOCOL_VERSION  =
           "ldapVersion";
 
    /**
     * The placeholder value of protocol version that will be
     * displayed in usage information.
     */
    public static final String OPTION_VALUE_PROTOCOL_VERSION = "{version}";
 
    /**
     * The value for the long option version.
     */
     public static final char OPTION_SHORT_PRODUCT_VERSION = 'V';
 
    /**
     * The value for the long option version.
     */
     public static final String OPTION_LONG_PRODUCT_VERSION  = "version";
 
  /**
   * The value for the short option description attributes.
   */
  public static final char OPTION_SHORT_DESCRIPTION = 'd';
 
  /**
   * The value for the long option description attribute.
   */
  public static final String OPTION_LONG_DESCRIPTION = "description";
 
  /**
   * The placeholder value of description that will be
   * displayed in usage information.
   */
  public static final String OPTION_VALUE_DESCRIPTION = "{description}";
 
  /**
   * The value for the short option groupName attributes.
   */
  public static final char OPTION_SHORT_GROUPNAME = 'g';
 
  /**
   * The value for the long option groupName
   * attribute.
   */
  public static final String OPTION_LONG_GROUPNAME= "groupName";
 
  /**
   * The placeholder value of groupName that will be
   * displayed in usage information.
   */
  public static final String OPTION_VALUE_GROUPNAME = "{group-name}";
 
  /**
   * The value for the short option newGroupName attribute.
   */
  public static final char OPTION_SHORT_NEWGROUPNAME = 'n';
 
  /**
   * The value for the long option groupName
   * attribute.
   */
  public static final String OPTION_LONG_NEWGROUPNAME= "newGroupName";
 
  /**
   * The value for the short option member-name attributes.
   */
  public static final char OPTION_SHORT_MEMBERNAME = 'm';
 
  /**
   * The value for the long member-name version
   * attribute.
   */
  public static final String OPTION_LONG_MEMBERNAME= "memberName";
 
  /**
   * The placeholder value of member-name that will be
   * displayed in usage information.
   */
  public static final String OPTION_VALUE_MEMBERNAME = "{member-name}";
 
  /**
   * The value for the short option backendName attributes.
   */
  public static final char OPTION_SHORT_BACKENDNAME = 'b';
 
  /**
   * The value for the long option backendName
   * attribute.
   */
  public static final String OPTION_LONG_BACKENDNAME= "backendName";
 
  /**
   * The placeholder value of backendName that will be
   * displayed in usage information.
   */
  public static final String OPTION_VALUE_BACKENDNAME = "{backend-name}";
 
  /**
   * The value for the short option serverID attributes.
   */
  public static final String OPTION_SHORT_SERVERID = null;
 
  /**
   * The value for the long option serverID
   * attribute.
   */
  public static final String OPTION_LONG_SERVERID= "serverID";
 
  /**
   * The placeholder value of serverID that will be
   * displayed in usage information.
   */
  public static final String OPTION_VALUE_SERVERID = "{serverID}";
 
  /**
   * The value for the short option userID attributes.
   */
  public static final String OPTION_SHORT_USERID = null;
 
  /**
   * The value for the long option userID
   * attribute.
   */
  public static final String OPTION_LONG_USERID= "userID";
 
  /**
   * The placeholder value of userID that will be
   * displayed in usage information.
   */
  public static final String OPTION_VALUE_USERID = "{userID}";
 
  /**
   * The value for the short option set.
   */
  public static final Character OPTION_SHORT_SET = null;
 
  /**
  * The value for the long option set.
  */
 public static final String OPTION_LONG_SET = "set";
 
 /**
  * The placeholder value for the long option set.
  */
 public static final String OPTION_VALUE_SET = "{PROP:VAL}";
 
}