131 * CallbackHandler to retrieve a new username and password,
132 * and another attempt to authenticate is made.
133 * If the authentication fails, the failure is reported
134 * back to the calling application.
135 *
136 * storePass if, true, this LoginModule stores the username and password
137 * obtained from the CallbackHandler in the module's
138 * shared state, using "javax.security.auth.login.name" and
139 * "javax.security.auth.login.password" as the respective
140 * keys. This is not performed if existing values already
141 * exist for the username and password in the shared state,
142 * or if authentication fails.
143 *
144 * clearPass if, true, this <code>LoginModule</code> clears the
145 * username and password stored in the module's shared state
146 * after both phases of authentication (login and commit)
147 * have completed.
148 * </pre>
149 *
150 */
151 public class JndiLoginModule implements LoginModule {
152
153 static final java.util.ResourceBundle rb =
154 java.util.ResourceBundle.getBundle("sun.security.util.AuthResources");
155
156 /** JNDI Provider */
157 public final String USER_PROVIDER = "user.provider.url";
158 public final String GROUP_PROVIDER = "group.provider.url";
159
160 // configurable options
161 private boolean debug = false;
162 private boolean strongDebug = false;
163 private String userProvider;
164 private String groupProvider;
165 private boolean useFirstPass = false;
166 private boolean tryFirstPass = false;
167 private boolean storePass = false;
168 private boolean clearPass = false;
169
170 // the authentication status
|
131 * CallbackHandler to retrieve a new username and password,
132 * and another attempt to authenticate is made.
133 * If the authentication fails, the failure is reported
134 * back to the calling application.
135 *
136 * storePass if, true, this LoginModule stores the username and password
137 * obtained from the CallbackHandler in the module's
138 * shared state, using "javax.security.auth.login.name" and
139 * "javax.security.auth.login.password" as the respective
140 * keys. This is not performed if existing values already
141 * exist for the username and password in the shared state,
142 * or if authentication fails.
143 *
144 * clearPass if, true, this <code>LoginModule</code> clears the
145 * username and password stored in the module's shared state
146 * after both phases of authentication (login and commit)
147 * have completed.
148 * </pre>
149 *
150 */
151 @jdk.Supported
152 public class JndiLoginModule implements LoginModule {
153
154 static final java.util.ResourceBundle rb =
155 java.util.ResourceBundle.getBundle("sun.security.util.AuthResources");
156
157 /** JNDI Provider */
158 public final String USER_PROVIDER = "user.provider.url";
159 public final String GROUP_PROVIDER = "group.provider.url";
160
161 // configurable options
162 private boolean debug = false;
163 private boolean strongDebug = false;
164 private String userProvider;
165 private String groupProvider;
166 private boolean useFirstPass = false;
167 private boolean tryFirstPass = false;
168 private boolean storePass = false;
169 private boolean clearPass = false;
170
171 // the authentication status
|