summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitri Dolguikh <ddolguik@redhat.com>2009-12-04 16:01:42 -0400
committerDmitri Dolguikh <ddolguik@redhat.com>2009-12-04 16:01:42 -0400
commit33ca9a18db5e03cc59ef6cdb9f31893604d1e3df (patch)
treea1378c2deeacf06873bcfd40516fcab0012c4c9b
parentda88fad0967f489616947618777a845670eb89fc (diff)
parent3e6779cacbaf7945460e36a437c96d66f4709a42 (diff)
downloadcandlepin-33ca9a18db5e03cc59ef6cdb9f31893604d1e3df.tar.gz
candlepin-33ca9a18db5e03cc59ef6cdb9f31893604d1e3df.tar.xz
candlepin-33ca9a18db5e03cc59ef6cdb9f31893604d1e3df.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/candlepin
-rw-r--r--proxy/buildconf/build.properties2
-rw-r--r--proxy/code/src/org/fedoraproject/candlepin/resource/cert/test/CertTest.java34
2 files changed, 18 insertions, 18 deletions
diff --git a/proxy/buildconf/build.properties b/proxy/buildconf/build.properties
index 8e383f9..ebe85ef 100644
--- a/proxy/buildconf/build.properties
+++ b/proxy/buildconf/build.properties
@@ -30,7 +30,7 @@ nowarn=!${deprecation}
includehelp=true
# IVY Properties
-ivyserver=http://jmrodri.fedorapeople.org
+ivyserver=http://rm-rf.ca/~dgoodwin
ivy.log.module.when.found=false
ivy.log.resolved.revision=false
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!");
}
}