// Authentication methods for login configuration
public static final String BASIC_METHOD = "BASIC";
- public static final String CERT_METHOD = "CLIENT-CERT";
+ public static final String CERT_METHOD = "CLIENT_CERT";
public static final String DIGEST_METHOD = "DIGEST";
public static final String FORM_METHOD = "FORM";
* or not any user has been authenticated:</p>
* <ul>
* <li><strong>request.getAuthType()</strong>
- * will return BASIC, CLIENT-CERT, DIGEST, FORM, or <code>null</code>
+ * will return BASIC, CLIENT_CERT, DIGEST, FORM, or <code>null</code>
* if there is no authenticated user.</li>
* <li><strong>request.getUserPrincipal()</strong>
* will return the authenticated <code>Principal</code> returned by the
// NOTE: We don't try to reauthenticate using any existing SSO session,
// because that will only work if the original authentication was
- // BASIC or FORM, which are less secure than the CLIENT-CERT auth-type
+ // BASIC or FORM, which are less secure than the CLIENT_CERT auth-type
// specified for this webapp
//
// Uncomment below to allow previous FORM or BASIC authentications
* <p>
* The purpose of this method is to allow an SSO entry that was
* established without a username/password combination (i.e. established
- * following DIGEST or CLIENT-CERT authentication) to be updated with
+ * following DIGEST or CLIENT_CERT authentication) to be updated with
* a username and password if one becomes available through a subsequent
* BASIC or FORM authentication. The SSO entry will then be usable for
* reauthentication.
* @param ssoId identifier of Single sign to be updated
* @param principal the <code>Principal</code> returned by the latest
* call to <code>Realm.authenticate</code>.
- * @param authType the type of authenticator used (BASIC, CLIENT-CERT,
+ * @param authType the type of authenticator used (BASIC, CLIENT_CERT,
* DIGEST or FORM)
* @param username the username (if any) used for the authentication
* @param password the password (if any) used for the authentication
*
* @param principal the <code>Principal</code> returned by the latest
* call to <code>Realm.authenticate</code>.
- * @param authType the type of authenticator used (BASIC, CLIENT-CERT,
+ * @param authType the type of authenticator used (BASIC, CLIENT_CERT,
* DIGEST or FORM)
* @param username the username (if any) used for the authentication
* @param password the password (if any) used for the authentication
* Gets the name of the authentication type originally used to authenticate
* the user associated with the SSO.
*
- * @return "BASIC", "CLIENT-CERT", "DIGEST", "FORM" or "NONE"
+ * @return "BASIC", "CLIENT_CERT", "DIGEST", "FORM" or "NONE"
*/
public String getAuthType() {
return (this.authType);
*
* @param principal the <code>Principal</code> returned by the latest
* call to <code>Realm.authenticate</code>.
- * @param authType the type of authenticator used (BASIC, CLIENT-CERT,
+ * @param authType the type of authenticator used (BASIC, CLIENT_CERT,
* DIGEST or FORM)
* @param username the username (if any) used for the authentication
* @param password the password (if any) used for the authentication
created during a secure request. Patch provided by Chris Halstead.
(markt)
</fix>
+ <fix>
+ <bug>40524</bug>: HttpServletRequest.getAuthType() now returns
+ CLIENT_CERT rather than CLIENT-CERT for certificate authentication
+ as per the spec. Note that web.xml continues to use CLIENT-CERT to
+ specify the certificate authentication should be used. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">