summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2009-12-04 12:27:35 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2009-12-04 15:54:58 -0400
commit2f9a5f53d5fb47dc5cc01b6bf827a77b1efa8d2b (patch)
tree85add3dd09f89574410aba17b2dc7af7cfc3aeee
parent2c7f8d729a24e0a9532e0bacdf96b0010d6ff2c4 (diff)
downloadcandlepin-2f9a5f53d5fb47dc5cc01b6bf827a77b1efa8d2b.tar.gz
candlepin-2f9a5f53d5fb47dc5cc01b6bf827a77b1efa8d2b.tar.xz
candlepin-2f9a5f53d5fb47dc5cc01b6bf827a77b1efa8d2b.zip
Remove some println's from CertTest.
-rw-r--r--proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java34
1 files changed, 17 insertions, 17 deletions
diff --git a/proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java b/proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java
index 182b359..2ccb0f5 100644
--- a/proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java
+++ b/proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java
@@ -47,7 +47,7 @@ public class CertTest {
@Test
public void testCertGenerator() {
String cert = CertGenerator.getCertString();
- System.out.println("Cert: " + cert);
+// System.out.println("Cert: " + cert);
}
@Test
@@ -146,8 +146,8 @@ public class CertTest {
caPrivKey);
X509Certificate clientCert = AttrCertExample.createClientCert(pubKey,
caPrivKey, caPubKey);
- System.out.println("CaCert: " + caCert);
- System.out.println("clientCert: " + clientCert);
+// System.out.println("CaCert: " + caCert);
+// System.out.println("clientCert: " + clientCert);
// Instantiate a new AC generator
X509V2AttributeCertificateGenerator acGen =
new X509V2AttributeCertificateGenerator();
@@ -216,15 +216,15 @@ public class CertTest {
AttributeCertificateHolder h = att.getHolder();
if (h.match(clientCert)) {
if (h.getEntityNames() != null) {
- System.out.println(h.getEntityNames().length +
- " entity names found");
+// System.out.println(h.getEntityNames().length +
+// " entity names found");
}
if (h.getIssuer() != null) {
- System.out.println(h.getIssuer().length +
- " issuer names found, serial number " +
- h.getSerialNumber());
+// System.out.println(h.getIssuer().length +
+// " issuer names found, serial number " +
+// h.getSerialNumber());
}
- System.out.println("Matches original client x509 cert");
+// System.out.println("Matches original client x509 cert");
}
// Issuer
@@ -232,15 +232,15 @@ public class CertTest {
AttributeCertificateIssuer issuer = att.getIssuer();
if (issuer.match(caCert)) {
if (issuer.getPrincipals() != null) {
- System.out.println(issuer.getPrincipals().length +
- " entity names found");
+// System.out.println(issuer.getPrincipals().length +
+// " entity names found");
}
- System.out.println("Matches original ca x509 cert");
+// System.out.println("Matches original ca x509 cert");
}
// Dates
- System.out.println("valid not before: " + att.getNotBefore());
- System.out.println("valid not before: " + att.getNotAfter());
+// System.out.println("valid not before: " + att.getNotBefore());
+// System.out.println("valid not before: " + att.getNotAfter());
// check the dates, an exception is thrown in checkValidity()...
@@ -263,16 +263,16 @@ public class CertTest {
// Attribute
X509Attribute[] attribs = att.getAttributes();
- System.out.println("cert has " + attribs.length + " attributes:");
+// System.out.println("cert has " + attribs.length + " attributes:");
for (int i = 0; i < attribs.length; i++) {
X509Attribute a = attribs[i];
- System.out.println("OID: " + a.getOID());
+// System.out.println("OID: " + a.getOID());
// currently we only check for the presence of a 'RoleSyntax'
// attribute
if (a.getOID().equals("2.5.24.72")) {
- System.out.println("rolesyntax read from cert!");
+// System.out.println("rolesyntax read from cert!");
}
}