Skip to content

Commit ad7dd94

Browse files
committed
Suppport both RFC 2253 and 1779 as EE doesn't describe one.
1 parent ba56f5a commit ad7dd94

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

servlet/security-clientcert/src/test/java/org/javaee7/servlet/security/clientcert/SecureServletTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,13 @@ public void testGetWithCorrectCredentials() throws Exception {
186186

187187
log.info(page.getContent());
188188

189-
assertTrue("my GET", page.getContent().contains("principal C=UK, ST=lak, L=zak, O=kaz, OU=bar, CN=lfoo"));
189+
assertTrue("my GET",
190+
// RFC 1779
191+
page.getContent().contains("principal C=UK, ST=lak, L=zak, O=kaz, OU=bar, CN=lfoo") ||
192+
193+
// RFC 2253
194+
page.getContent().contains("principal C=UK,ST=lak,L=zak,O=kaz,OU=bar,CN=lfoo")
195+
);
190196
} catch (Exception e) {
191197
e.printStackTrace();
192198
throw e;

0 commit comments

Comments
 (0)