View Javadoc
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   *     https://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  
21  package org.apache.directory.api.ldap.model.constants;
22  
23  
24  /**
25   * The PasswordPolicy schema ObjectClasses and AttributeTypes.
26   * Final reference -> class shouldn't be extended
27   *
28   * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
29   */
30  public final class PasswordPolicySchemaConstants
31  {
32      // ---- ObjectClasses -----------------------------------------------------
33      // pwdPolicy
34      public static final String PWD_POLICY_OC = "pwdPolicy";
35      public static final String PWD_POLICY_OC_OID = "1.3.6.1.4.1.42.2.27.8.2.1";
36  
37      // ---- AttributeTypes ----------------------------------------------------
38      // pwdAttribute
39      public static final String PWD_ATTRIBUTE_AT = "pwdAttribute";
40      public static final String PWD_ATTRIBUTE_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.1";
41  
42      // pwdMinAge
43      public static final String PWD_MIN_AGE_AT = "pwdMinAge";
44      public static final String PWD_MIN_AGE_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.2";
45  
46      // pwdMaxAge
47      public static final String PWD_MAX_AGE_AT = "pwdMaxAge";
48      public static final String PWD_MAX_AGE_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.3";
49  
50      // pwdLockoutDuration
51      public static final String PWD_LOCKOUT_DURATION_AT = "pwdLockoutDuration";
52      public static final String PWD_LOCKOUT_DURATION_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.10";
53  
54      // pwdInHistory
55      public static final String PWD_IN_HISTORY_AT = "pwdInHistory";
56      public static final String PWD_IN_HISTORY_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.4";
57  
58      // pwdCheckQuality
59      public static final String PWD_CHECK_QUALITY_AT = "pwdCheckQuality";
60      public static final String PWD_CHECK_QUALITY_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.5";
61  
62      // pwdMinLength
63      public static final String PWD_MIN_LENGTH_AT = "pwdMinLength";
64      public static final String PWD_MIN_LENGTH_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.6;";
65  
66      // pwdExpireWarning
67      public static final String PWD_EXPIRE_WARNING_AT = "pwdExpireWarning";
68      public static final String PWD_EXPIRE_WARNING_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.7;";
69  
70      // pwdGraceAuthNLimit
71      public static final String PWD_GRACE_AUTHN_LIMIT_AT = "pwdGraceAuthNLimit";
72      public static final String PWD_GRACE_AUTHN_LIMIT_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.;";
73  
74      // pwdLockout
75      public static final String PWD_LOCKOUT_AT = "pwdLockout";
76      public static final String PWD_LOCKOUT_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.9";
77  
78      // pwdMaxFailure
79      public static final String PWD_MAX_FAILURE_AT = "pwdMaxFailure";
80      public static final String PWD_MAX_FAILURE_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.11";
81  
82      // pwdFailureCountInterval
83      public static final String PWD_FAILURE_COUNT_INTERVAL_AT = "pwdFailureCountInterval";
84      public static final String PWD_FAILURE_COUNT_INTERVAL_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.12";
85  
86      // public static final String PWD_MUST_CHANGE_AT = 
87      public static final String PWD_MUST_CHANGE_AT = "pwdMustChange";
88      public static final String PWD_MUST_CHANGE_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.13";
89  
90      // pwdAllowUserChange
91      public static final String PWD_ALLOW_USER_CHANGE_AT = "pwdAllowUserChange";
92      public static final String PWD_ALLOW_USER_CHANGE_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.14";
93  
94      // pwdSafeModify
95      public static final String PWD_SAFE_MODIFY_AT = "pwdSafeModify";
96      public static final String PWD_SAFE_MODIFY_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.15";
97  
98      // pwdChangedTime
99      public static final String PWD_CHANGED_TIME_AT = "pwdChangedTime";
100     public static final String PWD_CHANGED_TIME_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.16";
101 
102     // pwdAccountLockedTime
103     public static final String PWD_ACCOUNT_LOCKED_TIME_AT = "pwdAccountLockedTime";
104     public static final String PWD_ACCOUNT_LOCKED_TIME_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.17";
105 
106     // pwdFailureTime
107     public static final String PWD_FAILURE_TIME_AT = "pwdFailureTime";
108     public static final String PWD_FAILURE_TIME_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.19";
109 
110     // pwdHistory
111     public static final String PWD_HISTORY_AT = "pwdHistory";
112     public static final String PWD_HISTORY_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.20";
113 
114     // pwdGraceUseTime
115     public static final String PWD_GRACE_USE_TIME_AT = "pwdGraceUseTime";
116     public static final String PWD_GRACE_USE_TIME_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.21";
117 
118     // pwdReset
119     public static final String PWD_RESET_AT = "pwdReset";
120     public static final String PWD_RESET_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.22";
121 
122     // pwdPolicySubentry
123     public static final String PWD_POLICY_SUBENTRY_AT = "pwdPolicySubentry";
124     public static final String PWD_POLICY_SUBENTRY_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.23";
125 
126     // pwdMinDelay
127     public static final String PWD_MIN_DELAY_AT = "pwdMinDelay";
128     public static final String PWD_MIN_DELAY_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.24";
129 
130     // pwdMaxDelay
131     public static final String PWD_MAX_DELAY_AT = "pwdMaxDelay";
132     public static final String PWD_MAX_DELAY_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.25";
133 
134     // pwdMaxIdle
135     public static final String PWD_MAX_IDLE_AT = "pwdMaxIdle";
136     public static final String PWD_MAX_IDLE_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.26";
137 
138     // pwdStartTime
139     public static final String PWD_START_TIME_AT = "pwdStartTime";
140     public static final String PWD_START_TIME_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.27";
141 
142     // pwdEndTime
143     public static final String PWD_END_TIME_AT = "pwdEndTime";
144     public static final String PWD_END_TIME_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.28";
145 
146     // pwdLastSuccess
147     public static final String PWD_LAST_SUCCESS_AT = "pwdLastSuccess";
148     public static final String PWD_LAST_SUCCESS_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.29";
149 
150     // pwdGraceExpire
151     public static final String PWD_GRACE_EXPIRE_AT = "pwdGraceExpire";
152     public static final String PWD_GRACE_EXPIRE_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.30";
153 
154     // pwdMaxLength
155     public static final String PWD_MAX_LENGTH_AT = "pwdMaxLength";
156     public static final String PWD_MAX_LENGTH_AT_OID = "1.3.6.1.4.1.42.2.27.8.1.31";
157 
158     /**
159      *  Ensures no construction of this class, also ensures there is no need for final keyword above
160      *  (Implicit super constructor is not visible for default constructor),
161      *  but is still self documenting.
162      */
163     private PasswordPolicySchemaConstants()
164     {
165     }
166 }