You can subscribe to this list here.
2002 |
Jan
|
Feb
(1) |
Mar
(74) |
Apr
(4) |
May
(14) |
Jun
|
Jul
(4) |
Aug
(9) |
Sep
|
Oct
(3) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
(186) |
Apr
(26) |
May
(4) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
(64) |
Oct
|
Nov
|
Dec
(11) |
2004 |
Jan
(8) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(25) |
2005 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
(1) |
Mar
(4) |
Apr
|
May
(4) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
(6) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Daniel M. <tub...@us...> - 2003-04-11 17:07:21
|
Update of /cvsroot/epp-rtk/epp-rtk/java/etc In directory sc8-pr-cvs1:/tmp/cvs-serv14436/etc Modified Files: rtk.properties Log Message: changed log4j properties to not use rootCategory anymore changed RTKBase to call getLogger("epprtk"); not using root logger anymore because it could interfere with loggers used by apps using this RTK Index: rtk.properties =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/etc/rtk.properties,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** rtk.properties 24 Mar 2003 21:17:56 -0000 1.6 --- rtk.properties 11 Apr 2003 17:07:15 -0000 1.7 *************** *** 34,49 **** # These are the settings for advanced logging using log4j # For those new to log4j, the more changeable properties ! # are "log4j.appender.A2.File", "log4j.appender.A2.MaxFileSize" ! # and "log4j.appender.A2.MaxBackupIndex". ! log4j.rootCategory=DEBUG,A2 ! log4j.appender.A2=org.apache.log4j.RollingFileAppender ! log4j.appender.A2.File=/tmp/epp-rtk-debug.log ! log4j.appender.A2.Append=true ! log4j.appender.A2.MaxFileSize=5MB ! log4j.appender.A2.MaxBackupIndex=4 ! log4j.appender.A2.layout=org.apache.log4j.TTCCLayout ! log4j.appender.A2.layout.ContextPrinting=true ! log4j.appender.A2.layout.DateFormat=ISO8601 ! log4j.appender.A2.layout.TimeZone=GMT --- 34,51 ---- # These are the settings for advanced logging using log4j # For those new to log4j, the more changeable properties ! # are "log4j.appender.rtk.File", "log4j.appender.rtk.MaxFileSize" ! # and "log4j.appender.rtk.MaxBackupIndex". ! # The logging level should be left at DEBUG here. To change the ! # amount of output from the RTK, check rtk.debug.level above. ! log4j.logger.epprtk=DEBUG,rtk ! log4j.appender.rtk=org.apache.log4j.RollingFileAppender ! log4j.appender.rtk.File=/tmp/epp-rtk-debug.log ! log4j.appender.rtk.Append=true ! log4j.appender.rtk.MaxFileSize=5MB ! log4j.appender.rtk.MaxBackupIndex=4 ! log4j.appender.rtk.layout=org.apache.log4j.TTCCLayout ! log4j.appender.rtk.layout.ContextPrinting=true ! log4j.appender.rtk.layout.DateFormat=ISO8601 ! log4j.appender.rtk.layout.TimeZone=GMT |
From: Daniel M. <tub...@us...> - 2003-04-09 19:45:51
|
Update of /cvsroot/epp-rtk/epp-rtk/java/ssl In directory sc8-pr-cvs1:/tmp/cvs-serv5645 Modified Files: README.TXT ssl.properties Added Files: cert.pem epp_rtk_keystore.p12 epp_rtk_keystore.sh epp_rtk_keystore_info.sh key.pem Removed Files: CAStore CAcert.crt KeyStoreImport.class KeyStoreImport.java RTKsigned.cert ServerStore Servercert.crt Sign.java keystoreimport.properties signedcert.crt Log Message: moved most of the original ssl files to ssl-old (java file not longer compiled with JDK 1.4, pkcs keystore is much easier to maintain) imported in files from the afilias .org ssl set --- NEW FILE: cert.pem --- Certificate: Data: Version: 3 (0x2) Serial Number: 0 (0x0) Signature Algorithm: md5WithRSAEncryption Issuer: C=CA, ST=Ontario, L=Toronto, O=LibertyRMS CO., OU=lrms, CN=localhost Validity Not Before: Aug 21 20:31:12 2002 GMT Not After : Aug 18 20:31:12 2012 GMT Subject: C=CA, ST=Ontario, L=Toronto, O=LibertyRMS CO., OU=lrms, CN=localhost Subject Public Key Info: Public Key Algorithm: rsaEncryption RSA Public Key: (1024 bit) Modulus (1024 bit): 00:c1:7d:37:67:18:5d:ab:08:fe:62:6a:5d:e2:10: 6e:38:19:ed:98:60:53:5c:e7:80:60:1c:1c:25:df: 22:fe:cf:67:00:f1:1b:6c:68:df:be:da:2e:3c:81: df:60:d9:58:a3:d4:ee:ce:b0:cd:71:00:3b:b3:68: 5f:7f:4e:47:d5:fd:2e:11:f0:67:f0:68:f1:2e:80: e9:34:54:0f:49:67:ae:42:9e:29:db:02:92:78:76: f1:39:d6:b8:ac:3d:7a:87:17:59:cd:c0:20:fb:be: 1e:3e:0b:4a:6c:43:6f:34:d1:24:a7:62:d6:9d:18: 99:a0:aa:d9:b1:34:af:24:55 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Subject Key Identifier: F3:F1:6D:A7:95:AC:A8:9D:3D:8E:29:6D:0B:15:AC:AA:91:CF:A1:30 X509v3 Authority Key Identifier: keyid:F3:F1:6D:A7:95:AC:A8:9D:3D:8E:29:6D:0B:15:AC:AA:91:CF:A1:30 DirName:/C=CA/ST=Ontario/L=Toronto/O=LibertyRMS CO./OU=lrms/CN=localhost serial:00 X509v3 Basic Constraints: CA:TRUE Signature Algorithm: md5WithRSAEncryption ba:d8:3a:4b:58:a5:47:04:97:b1:e1:47:7a:66:04:97:fb:33: 9f:ac:f7:f6:31:94:ce:00:9f:96:42:6c:b4:7b:53:50:da:66: 1b:34:46:fd:48:fc:d0:e6:77:fe:b1:44:08:45:5a:83:ff:47: 63:2e:bd:da:4f:f8:cf:4f:a1:bd:8f:70:dc:38:71:92:d2:b9: 09:bf:a1:d2:b7:ca:77:5b:4a:63:3b:44:fb:3d:fe:1c:24:b3: 1f:a4:f8:dd:66:d1:6e:1a:95:b1:c9:a4:ac:17:d2:86:92:c0: 6e:f6:cd:7b:fe:aa:bd:a1:5f:29:c6:33:7a:41:52:8e:14:a5: 0f:09 -----BEGIN CERTIFICATE----- MIIDGzCCAoSgAwIBAgIBADANBgkqhkiG9w0BAQQFADBtMQswCQYDVQQGEwJDQTEQ MA4GA1UECBMHT250YXJpbzEQMA4GA1UEBxMHVG9yb250bzEXMBUGA1UEChMOTGli ZXJ0eVJNUyBDTy4xDTALBgNVBAsTBGxybXMxEjAQBgNVBAMTCWxvY2FsaG9zdDAe Fw0wMjA4MjEyMDMxMTJaFw0xMjA4MTgyMDMxMTJaMG0xCzAJBgNVBAYTAkNBMRAw DgYDVQQIEwdPbnRhcmlvMRAwDgYDVQQHEwdUb3JvbnRvMRcwFQYDVQQKEw5MaWJl cnR5Uk1TIENPLjENMAsGA1UECxMEbHJtczESMBAGA1UEAxMJbG9jYWxob3N0MIGf MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBfTdnGF2rCP5ial3iEG44Ge2YYFNc 54BgHBwl3yL+z2cA8RtsaN++2i48gd9g2Vij1O7OsM1xADuzaF9/TkfV/S4R8Gfw aPEugOk0VA9JZ65CninbApJ4dvE51risPXqHF1nNwCD7vh4+C0psQ2800SSnYtad GJmgqtmxNK8kVQIDAQABo4HKMIHHMB0GA1UdDgQWBBTz8W2nlayonT2OKW0LFayq kc+hMDCBlwYDVR0jBIGPMIGMgBTz8W2nlayonT2OKW0LFayqkc+hMKFxpG8wbTEL MAkGA1UEBhMCQ0ExEDAOBgNVBAgTB09udGFyaW8xEDAOBgNVBAcTB1Rvcm9udG8x FzAVBgNVBAoTDkxpYmVydHlSTVMgQ08uMQ0wCwYDVQQLEwRscm1zMRIwEAYDVQQD Ewlsb2NhbGhvc3SCAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQQFAAOBgQC6 2DpLWKVHBJex4Ud6ZgSX+zOfrPf2MZTOAJ+WQmy0e1NQ2mYbNEb9SPzQ5nf+sUQI RVqD/0djLr3aT/jPT6G9j3DcOHGS0rkJv6HSt8p3W0pjO0T7Pf4cJLMfpPjdZtFu GpWxyaSsF9KGksBu9s17/qq9oV8pxjN6QVKOFKUPCQ== -----END CERTIFICATE----- --- NEW FILE: epp_rtk_keystore.p12 --- 00× *H÷ ÈÄ0À0¿ *H÷ °0¬ *H÷ 0¼>Î5Cà°£ ó-òF¯¶²Ós¥$T¤z%#.áÕG¾È4ëXdù0HFÔ¡ËÅ!Pl5»·S lÇÁÌYÕ!ÈJx?rBCQs>·h3=¥õþ|«#Ê÷¢»| ýÊï $Djò~u8j¦îù2¡35!=UU|¹¥Üþ-¬yu»ø=%)1·×i?òUÔë¤ÿ0he¿|<Æ0CñsûùìôF h}íÝLßM x·O'.±OöⱯè^gI:f°?LµT°´6׫Ð[zÕ»YÿÔêÿ=ݾåÝ6hõù¶Ã;òÏþ:·"Z1µ¢ Øu½û8f,«ßâË$>%n$JOÝ\¸úMc6=®HD@á]W4ÊR]©Û¤váPÏBÅ /é e<' ÌtèHèÉvî\å+ QonÄ6j[%òkÛÂfìngäAÌ àÔTËñ>F/éÌÍúîq`(¤®5zÑLÉaGԲƻë¶ëU §»fAó¶Scu¦ç¾âÂq¡Am×?bÜ$¥ÊP%«y®o·ÊG¯¤#Aµ'|Iz¿`böPÃSÙ¡¨@Îëa³±ç=ý'}Quqªö;Woy[Bgñ*RrþÉý>1ã;û6Ú¾Êtå4÷K/B{Ì,3¥zô çµ þÕ,TbZïWó\0ù *H÷ êæ0â0Þ*H÷ ¦0¢0 *H÷ 0\áñª¼% }+?ª×B°8iÿiÍ<(ÛÔBÂ\ܯ_¦aºíà dÑQÞ¶ÂFÊQÈeõÑ¥ÑØ¼»Hí§4Ôç:»k½E¸¥ÐN9Ä¡aJËpZ[pÛv!f1=ôÑqm ¦ÇA cªZ;ß·ïÌÔï¸5Oµ=$[Ózg ËK,8ß-àÚäÖׯ¼ä7¬ãê6ÆÌùuK§¢Ôí# Åj´+ÎñÝ"geªC±ÍrÝF5}ñ(æÇP&Ï7`·vk%L¸¤GFN[«~¡<æ§#s3s§o<Â]İ ToO5v¢ü<³³öß3¦cqhCªixaÜV q$pÿºzu¢%ËÆ=³@9åËä·¥hÛ¡FÝ_¢ÉÆ?0?7 è§HHI¯àÓ4]\@/¾P³å@ðh4Í üÀHVSL«Ð-³ÔDó0_MT-¤xÒÁOò_-,˸00µÅ©õL9#}>)÷(]£T GH3ÅçFçþÀó©¼xQFFK7ÿÒßQÏìnÎt(Ê\êhcj¡´· ýéBžð£³s ~¯í1fdºI ÃħH $)½>=â¢Ò6S|&Y+Qí̺1x]8¤£´ÅÛdzbNà)-çMÑÆbônÐÆõ71%0# *H÷ 1Ó&ü©½\®+·¯ðO¶{010!0 + --- NEW FILE: epp_rtk_keystore.sh --- #!/bin/bash if [ "$1" = "" ]; then KEY_PEM=key.pem else KEY_PEM=$1 fi if [ "$2" = "" ]; then CERT_PEM=cert.pem else CERT_PEM=$2 fi if [ "$3" = "" ]; then CA_CERT_PEM= else CA_CERT_PEM=$3 fi if [ "$4" = "" ]; then CHAIN_CERT_PEM= else CHAIN_CERT_PEM=$4 fi if [ ! -f "$KEY_PEM" ]; then echo "ERR: key PEM file not found: $KEY_PEM" exit 1 fi if [ ! -f "$CERT_PEM" ]; then echo "ERR: cert PEM file not found: $CERT_PEM" exit 1 fi if [ "$CA_CERT_PEM" != "" -a ! -f "$CA_CERT_PEM" ]; then echo "ERR: cacert PEM file not found: $CA_CERT_PEM" exit 1 fi if [ "$CHAIN_CERT_PEM" != "" -a ! -f "$CHAIN_CERT_PEM" ]; then echo "ERR: chaincert PEM file not found: $CHAIN_CERT_PEM" exit 1 fi cat $KEY_PEM $CERT_PEM $CHAIN_CERT_PEM $CA_CERT_PEM | openssl pkcs12 -export -out epp_rtk_keystore.p12 #openssl pkcs12 -export -out epp_rtk_keystore.p12 -inkey key.pem -in cert.pem -name "mycert" -caname "mycacert" #openssl pkcs12 -info -in epp_rtk_keystore.p12 --- NEW FILE: epp_rtk_keystore_info.sh --- #!/bin/bash openssl pkcs12 -info -in epp_rtk_keystore.p12 --- NEW FILE: key.pem --- -----BEGIN RSA PRIVATE KEY----- MIICXAIBAAKBgQDBfTdnGF2rCP5ial3iEG44Ge2YYFNc54BgHBwl3yL+z2cA8Rts aN++2i48gd9g2Vij1O7OsM1xADuzaF9/TkfV/S4R8GfwaPEugOk0VA9JZ65Cninb ApJ4dvE51risPXqHF1nNwCD7vh4+C0psQ2800SSnYtadGJmgqtmxNK8kVQIDAQAB AoGBAI1Wq57alKm4kyJO8q+NMwY2InIZgyutTABo6ELd4ZFi7aopdc/WOAMRG49F i2gSvIZIp/1B94BhHDsstf2nsB6hVeHqDgnJbbl8cdnEAwlT5L0NWi8MgE8V+SHV 8O+wuzgXAkpHHx+fM2ql5f99g+8VPV/Or4SRpw+x37rDAb2tAkEA8jtRrfVB/4Ez 5YKzJJAn8ETkU3rjGTUPJUtq76kZN5ZK700txeiU3+KU0n9cPbmK8GaWrgHA5PqA J2fZJ0iPPwJBAMx8ponbxrVU3MBKd3bsidQKUo2zw1DATfnK8TCzxU1Dzl8VZKvx FXYueZW1JYLWo2gRl7mA4cc1bqKaKnl4e2sCQGgF8V2zJVSEN7UoG6ZoAb681xDC hSQeFRL/AD1LcPjeIfACRNXou4Yp159N8l7Pf0sdwzeWqS+sI7zIbAjisCECQDeS AGgic8O/hiYzlneZHHOlQn4DxiZhvE8P2a/Uit/Od3zbgXpAkAaH5r7KdaEy10Fm 1oaxAapzWNeTccuE9HUCQEZhRpCmOmy5ORrpuucc2+esDsPr0ezy3231/h9RCtqP l/AbOsBPTTEqfDtoc4pwBB+snNQOfwsklSqO0AIvBNw= -----END RSA PRIVATE KEY----- Index: README.TXT =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/ssl/README.TXT,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** README.TXT 20 Jul 2001 13:54:42 -0000 1.3 --- README.TXT 9 Apr 2003 19:45:46 -0000 1.4 *************** *** 1,3 **** ! This file contains a bunch of tips and tricks collected in the SF epp-rtk community.... feel free to contribute to this list... --- 1,3 ---- ! This file contains a few tips and tricks collected from the SF epp-rtk community.... feel free to contribute to this list... *************** *** 7,65 **** [ thanks to wessorh for this tip ] ! To create a keystore, readable by the JSSE, that contains a registrar's ! current certs used with NSI do the following on your favorite unix box ! with openSSL 0.9.6a installed. ! example% cat client-key.pem client-cert.pem ca-cert.pem | openssl pkcs12 \ ! -export -out keystore.pkcs12 -noiter -nomaciter -name my_cert_name ! the keystore.pkcs12 can be read by any java based keytool, dont forget ! the -storetype pkcs12 option... ! Creating a JSSE keystore with KeyStoreImport ! ============================================ ! [ tip provided by tubadanm ] - It's a bit more complicated than the OpenSSL-only tip above... ! I've tested this procedure with an RSA private key, it's public cert and ! it's CA cert. The KeyStoreImport Java source is included in this directory. ! You will need the CDC JCE provider installed for this to work. ! You can get the CDC at ! http://www.informatik.tu-darmstadt.de/TI/Forschung/cdcProvider/overview.html ! The code.jar and cdc_standard.jar files should be all that you need. ! Edit the ssl.properties to have the values you want. ! Then edit the keystoreimport.properties file to contain the file names ! of the cert and the cacert (can be either PEM or DER formats) and their type. ! I haven't tested this with any other type than "x509". Also the class is ! written to only load a two-cert chain. You would have to edit the ! KeyStoreImport.java code to load more and add the certs to the properties files. ! The use OpenSSL rsa command (eg. openssl rsa -inform PEM|DER -in key_file -text ) ! to view the details of your RSA private key (use PEM or DER depending on the ! file format). The output of the command should show you, in HEX, the public ! modulus, private and public exponents, primes 1 and 2, exponents 1 and 2 and ! the coefficient of the RSA private key. Take those numbers (be sure to strip ! out the ':' out of the hex numbers) and put them into keystore.import.properties ! with the appropriate property names. Most of the radices should stay at 16. ! For my testing, the public exponent was shown in radix 10. Be sure that each ! long hex number has no spaces or line breaks in them. (Yes, this step is a ! PITA, but you should only have to do this once a year.) ! Now, with this setup, run this command (this assumes that the JSSE and CDC JCE ! jars are in $JAVA_HOME/jre/lib/ext, which automagically puts then in your ! classpath): ! java -Dssl.props.location=$RTK_HOME/java/ssl -classpath . KeyStoreImport ! (or for Windows) ! java -Dssl.props.location=%RTK_HOME%/java/ssl -classpath . KeyStoreImport ! This should generate the keystore in the file specified in ssl.properties. - This has worked for me personally, but there are probably many variations of - certs, cert chains and keys out there so join epp-rtk-devel if you need help - or if you want to share your SSL horror stories and successes with us. --- 7,65 ---- [ thanks to wessorh for this tip ] ! To create a keystore, readable by the JSSE, that contains a registrar's ! current certs used with NSI do the following on your favorite unix box ! with openSSL 0.9.6a installed. ! example% cat client-key.pem client-cert.pem ca-cert.pem | openssl pkcs12 \ ! -export -out keystore.pkcs12 -noiter -nomaciter -name my_cert_name ! the keystore.pkcs12 can be read by any java based keytool, dont forget ! the -storetype pkcs12 option... ! Using BouncyCastle and PKCS12 keystores ! ======================================= ! [ based on the tip above; thanks to fotsoft ! for the easy-to-use scripts ] ! Included in this directory is a Unix Bash script to make the creation ! of OpenSSL PKCS12 keystore relatively easy. It takes a private key, ! public certificate, optional CA certificate and optional chaining ! certificate (linking the public cert with the CA). The CA Cert is ! usually mandatory (unless your public cert was self-signed, which ! usually is not accept by most domain name registries). ! To create a keystore for use by the Java RTK, you run (from this ! directory): ! ./epp_rtk_keystore.sh <key.pem> <cert.pem> [<cacert.pem> [<chaincert.pem>]] ! {you will be prompted for this:} ! Enter Export Password: {enter-your-keystore-password-here} ! Verifying password - Enter Export Password: {reenter-your-keystore-password-here} ! Now in the current directory, you will see the file (epp_rtk_keystore.p12). ! To view the contents of this keystore, you run (from this directory): ! ! ./epp_rtk_keystore_info.sh ! ! Enter Import Password: <enter-your-keystore-password-here> ! ! . ! . ! . ! ! ! Enter PEM pass phrase: {enter-your-key-password-here} (created at the time ! you requested your paid for cert) ! Verifying password - Enter PEM pass phrase: <enter-your-key-password-here> ! ! The ssl.properties file is already setup for use of the sample key and self-signed ! certificate provided. The RTK uses the BouncyCastle encryption provider to read the ! keystore. BouncyCastle is not used for SSL encryption. When creating your own keystore, ! be sure to change the passwords set in the ssl.properties file. Index: ssl.properties =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/ssl/ssl.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ssl.properties 14 Jun 2001 16:00:53 -0000 1.2 --- ssl.properties 9 Apr 2003 19:45:46 -0000 1.3 *************** *** 1,8 **** ssl.protocol=TLS ssl.keymanagerfactory.format=SunX509 ! ssl.keystore.format=JKS ! ssl.keystore.file=ServerStore ! ssl.keystore.passphrase=Server ssl.cacert.alias=cacert ssl.signedcert.alias=signedcert ! ssl.signedcert.passphrase=openxrs --- 1,9 ---- ssl.protocol=TLS ssl.keymanagerfactory.format=SunX509 ! ssl.keystore.format=PKCS12 ! ssl.keystore.provider=BC ! ssl.keystore.file=epp_rtk_keystore.p12 ! ssl.keystore.passphrase=mykeystore ssl.cacert.alias=cacert ssl.signedcert.alias=signedcert ! ssl.signedcert.passphrase=mykey --- CAStore DELETED --- --- CAcert.crt DELETED --- --- KeyStoreImport.class DELETED --- --- KeyStoreImport.java DELETED --- --- RTKsigned.cert DELETED --- --- ServerStore DELETED --- --- Servercert.crt DELETED --- --- Sign.java DELETED --- --- keystoreimport.properties DELETED --- --- signedcert.crt DELETED --- |
From: Daniel M. <tub...@us...> - 2003-04-09 19:10:29
|
Update of /cvsroot/epp-rtk/epp-rtk/java/ssl/old-ssl In directory sc8-pr-cvs1:/tmp/cvs-serv22387 Added Files: CAStore CAcert.crt KeyStoreImport.class KeyStoreImport.java README.TXT RTKsigned.cert ServerStore Servercert.crt Sign.java keystoreimport.properties signedcert.crt ssl.properties Log Message: moving all of the original ssl files to old-ssl because most of them don't work anymore (java code won't compile anymore, etc...). wessorh's and fotsoft's pkcs12 keystore is much easier to use anyhow --- NEW FILE: CAStore --- þíþí +* ÙºdsqßPX0n¼Ú3¹I}Ýý·Hrí¢ýØaKI1Øá ìº-Qà*f¸&æòÞú¿ÁÙη¼#ZÛ³Ûü©kg³b7cxtxx¨E3u 7×·Zr¿)¼Ð£hêL¿ü¼´úx@ôÐÞ(´ÁDÕWÔt÷òÏægÚ¯Z]Q¤içËLõÿìn4â\®396»q {ÍΩÒx~¶jNÁÈpk=ÏJdÆ®w }ÔïmQT§RU;çþWóÔù ØhÅW]ÚFAe,ù¢É÷1ïL³¨A{>$'ý§ïþ<ÛÀÙ{UdÅ$q5k<}ÔnnôX ú&ù¡`!êäXz¶±ýP½µc tucows1 0Uoxrs10U Tucows-CA0 010524050021Z 010822050021Z0e10 UCA10UOntario10UToronto10 U tucows1 0Uoxrs10U Tucows-CA0·0,*HÎ80 ëÞºçv ð=jjf ÷E²õH>t8õ=nÛK*ólüv/su=]éeÀ,m²\+T=°¬iðUÛG§ÆÑlíg¨Ôcn¶MZ0*HÎ8 --- NEW FILE: CAcert.crt --- 0ÿ0¼;e0*HÎ8 tucows1 0Uoxrs10U Tucows-CA0 010524050021Z 010822050021Z0e10 UCA10UOntario10UToronto10 U tucows1 0Uoxrs10U Tucows-CA0·0,*HÎ80 ëÞºçv ð=jjf ÷E²õH>t8õ=nÛK*ólüv/su=]éeÀ,m²\+T=°¬iðUÛG§ÆÑlíg¨Ôcn¶MZ0*HÎ8 --- NEW FILE: KeyStoreImport.class --- Êþº¾ SourceFile ,¶ ¶ ¶ ¶ 2¶ ¶ --- NEW FILE: KeyStoreImport.java --- import java.io.*; import java.util.*; import java.security.cert.*; import java.security.*; import java.math.*; // import of some cdcProvider classes (mostly for RSAPrivCrtKey) // available at http://www.informatik.tu-darmstadt.de/TI/Forschung/cdcProvider/overview.html import cdc.standard.rsa.*; class KeyStoreImport { public static void main(String arg[]) { try { Properties system_props = System.getProperties(); String ssl_props_location = (String) system_props.getProperty("ssl.props.location"); if ( ssl_props_location == null || ssl_props_location.length() == 0 ) { throw new IOException("No ssl props location specified"); } System.out.println("Loading ssl.properties..."); Properties ssl_props = new Properties(); ssl_props.load(new FileInputStream(ssl_props_location + "/ssl.properties")); System.out.println("Loading keystoreimport.properties..."); Properties import_props = new Properties(); import_props.load(new FileInputStream(ssl_props_location + "/keystoreimport.properties")); KeyStore ks = KeyStore.getInstance(((String)ssl_props.get("ssl.keystore.format"))); System.out.println("Initializing the new keystore..."); ks.load(null, null); char[] pwd = ((String)ssl_props.get("ssl.keystore.passphrase")).toCharArray(); char[] kpwd = ((String)ssl_props.get("ssl.signedcert.passphrase")).toCharArray(); CertificateFactory cf = CertificateFactory.getInstance(((String)import_props.get("cert.type"))); System.out.println("Creating cert chain..."); /* * This class assumes a two link cert chain... if your cert chain is long then * make the cert array longer and load as many certs as required. */ InputStream inStream = new FileInputStream(((String)import_props.get("cert1.filename"))); java.security.cert.Certificate cert[] = new java.security.cert.Certificate[2]; cert[0] = cf.generateCertificate( inStream ); inStream.close(); /* * Insert more links in the cert chain here.... * (if enough people need this util, then we'll make it read as many certs * as are defined in the keystoreimport.properties file - dm) */ /* * The cert chain should always end with the CA cert. */ inStream = new FileInputStream(((String)import_props.get("cacert.filename"))); cert[1] = cf.generateCertificate( inStream ); inStream.close(); System.out.println("Adding the CA cert to the keystore..."); ks.setCertificateEntry(((String)ssl_props.get("ssl.cacert.alias")), cert[1]); System.out.println("Generating the RSA Private Key with the loaded parameters..."); BigInteger modulus = new BigInteger( ((String)import_props.get("rsaprivkey.modulus")), Integer.parseInt(((String)import_props.get("rsaprivkey.modulus.radix"))) ); BigInteger publicExponent = new BigInteger(((String)import_props.get("rsaprivkey.publicExponent")), Integer.parseInt(((String)import_props.get("rsaprivkey.publicExponent.radix"))) ); BigInteger privateExponent = new BigInteger(((String)import_props.get("rsaprivkey.privateExponent")), Integer.parseInt(((String)import_props.get("rsaprivkey.privateExponent.radix"))) ); BigInteger prime1 = new BigInteger( ((String)import_props.get("rsaprivkey.prime1")), Integer.parseInt(((String)import_props.get("rsaprivkey.prime1.radix"))) ); BigInteger prime2 = new BigInteger( ((String)import_props.get("rsaprivkey.prime2")), Integer.parseInt(((String)import_props.get("rsaprivkey.prime2.radix"))) ); BigInteger exponent1 = new BigInteger( ((String)import_props.get("rsaprivkey.exponent1")), Integer.parseInt(((String)import_props.get("rsaprivkey.exponent1.radix"))) ); BigInteger exponent2 = new BigInteger( ((String)import_props.get("rsaprivkey.exponent2")), Integer.parseInt(((String)import_props.get("rsaprivkey.exponent2.radix"))) ); BigInteger coefficient = new BigInteger( ((String)import_props.get("rsaprivkey.coefficient")), Integer.parseInt(((String)import_props.get("rsaprivkey.coefficient.radix"))) ); RSAPrivCrtKey rpck = new RSAPrivCrtKey(modulus, privateExponent, publicExponent, prime1, prime2, exponent1, exponent2, coefficient); System.out.println("Setting the key entry in the keystore with the cert chain..."); ks.setKeyEntry(((String)ssl_props.get("ssl.signedcert.alias")), rpck, kpwd, cert); System.out.println("Saving the keystore to ["+((String)ssl_props.get("ssl.keystore.file"))+"]"); FileOutputStream store = new FileOutputStream(((String)ssl_props.get("ssl.keystore.file"))); ks.store(store, pwd); store.close(); System.out.println("All done."); } catch (Exception e) { System.out.println("Exception: " + e); e.printStackTrace(); } } } --- NEW FILE: README.TXT --- This file contains a bunch of tips and tricks collected in the SF epp-rtk community.... feel free to contribute to this list... Creating a JSSE keystore with OpenSSL ===================================== [ thanks to wessorh for this tip ] To create a keystore, readable by the JSSE, that contains a registrar's current certs used with NSI do the following on your favorite unix box with openSSL 0.9.6a installed. example% cat client-key.pem client-cert.pem ca-cert.pem | openssl pkcs12 \ -export -out keystore.pkcs12 -noiter -nomaciter -name my_cert_name the keystore.pkcs12 can be read by any java based keytool, dont forget the -storetype pkcs12 option... Creating a JSSE keystore with KeyStoreImport ============================================ [ tip provided by tubadanm ] It's a bit more complicated than the OpenSSL-only tip above... I've tested this procedure with an RSA private key, it's public cert and it's CA cert. The KeyStoreImport Java source is included in this directory. You will need the CDC JCE provider installed for this to work. You can get the CDC at http://www.informatik.tu-darmstadt.de/TI/Forschung/cdcProvider/overview.html The code.jar and cdc_standard.jar files should be all that you need. Edit the ssl.properties to have the values you want. Then edit the keystoreimport.properties file to contain the file names of the cert and the cacert (can be either PEM or DER formats) and their type. I haven't tested this with any other type than "x509". Also the class is written to only load a two-cert chain. You would have to edit the KeyStoreImport.java code to load more and add the certs to the properties files. The use OpenSSL rsa command (eg. openssl rsa -inform PEM|DER -in key_file -text ) to view the details of your RSA private key (use PEM or DER depending on the file format). The output of the command should show you, in HEX, the public modulus, private and public exponents, primes 1 and 2, exponents 1 and 2 and the coefficient of the RSA private key. Take those numbers (be sure to strip out the ':' out of the hex numbers) and put them into keystore.import.properties with the appropriate property names. Most of the radices should stay at 16. For my testing, the public exponent was shown in radix 10. Be sure that each long hex number has no spaces or line breaks in them. (Yes, this step is a PITA, but you should only have to do this once a year.) Now, with this setup, run this command (this assumes that the JSSE and CDC JCE jars are in $JAVA_HOME/jre/lib/ext, which automagically puts then in your classpath): java -Dssl.props.location=$RTK_HOME/java/ssl -classpath . KeyStoreImport (or for Windows) java -Dssl.props.location=%RTK_HOME%/java/ssl -classpath . KeyStoreImport This should generate the keystore in the file specified in ssl.properties. This has worked for me personally, but there are probably many variations of certs, cert chains and keys out there so join epp-rtk-devel if you need help or if you want to share your SSL horror stories and successes with us. ========================== If none of these tip work for you, please join the epp-rtk-devel list on Sourceforge and send your problem there. Chances are that one of use has seen the problem before. --- NEW FILE: RTKsigned.cert --- 0þ0¼;g0*HÎ8 tucows1 0Uoxrs10U Tucows-CA0 010524050439Z 010822050439Z0e10 UCA10UOntario10UToronto10 U tucows1 0Uoxrs10U developer0·0,*HÎ80 zÃÏêÚÊm~õù´0*HÎ8 --- NEW FILE: ServerStore --- þíþí tucows1 0Uoxrs10U Tucows-CA0 010524050021Z 010822050021Z0e10 UCA10UOntario10UToronto10 U tucows1 0Uoxrs10U Tucows-CA0·0,*HÎ80 ëÞºçv ð=jjf ÷E²õH>t8õ=nÛK*ólüv/su=]éeÀ,m²\+T=°¬iðUÛG§ÆÑlíg¨Ôcn¶MZ0*HÎ8 +* Áú×x ÿòG5 4jJ Ç@8øô3+,ßÁÈ×ó©µÃý4ÆßùçÑÅUD$BÍüÈmê \ÐnÈÙkvr´4 ¼°"·}èÂ4ËÕhéþäÝ{°ô®8icÊáóQº¾P°¹B^ê÷²¡;Äø7$ð1ØãËÚ'ÛÜq»[Ï'ÐîB¿»?>Xat¼¹xäbNQgcp¾àjÞÅÂì¹ä®PgÅòò+.ÿ¼±iß,nL?OÚ tucows1 0Uoxrs10U Tucows-CA0 010524050439Z 010822050439Z0e10 UCA10UOntario10UToronto10 U tucows1 0Uoxrs10U developer0·0,*HÎ80 zÃÏêÚÊm~õù´0*HÎ8 tucows1 0Uoxrs10U Tucows-CA0 010524050021Z 010822050021Z0e10 UCA10UOntario10UToronto10 U tucows1 0Uoxrs10U Tucows-CA0·0,*HÎ80 ëÞºçv ð=jjf ÷E²õH>t8õ=nÛK*ólüv/su=]éeÀ,m²\+T=°¬iðUÛG§ÆÑlíg¨Ôcn¶MZ0*HÎ8 --- NEW FILE: Servercert.crt --- 0þ0¼;g0*HÎ8 tucows1 0Uoxrs10U developer0 010524050439Z 010822050439Z0e10 UCA10UOntario10UToronto10 U tucows1 0Uoxrs10U developer0·0,*HÎ80 zÃÏêÚÊm~õù´0*HÎ8 IUøj --- NEW FILE: Sign.java --- import java.io.*; import java.security.*; import sun.security.x509.*; import sun.security.util.*; class Sign { public static void main(String arg[]) { try { FileInputStream fisk = new FileInputStream("CAStore"); KeyStore ks = KeyStore.getInstance("JKS", "SUN"); String storepass = "CertAuth"; char[] pwd = new char[storepass.length()]; for (int i = 0; i < pwd.length; i++) pwd[i] = storepass.charAt(i); String keypass = "openxrs"; char[] kpwd = new char[keypass.length()]; for (int i = 0; i < kpwd.length; i++) kpwd[i] = keypass.charAt(i); ks.load(fisk, pwd); PrivateKey priv = (PrivateKey)ks.getKey("CAKey", kpwd); X509Cert certs = new X509Cert(); certs.decode(new FileInputStream("CAcert.crt")); AlgorithmId SHAalg = new AlgorithmId(AlgorithmId.DSA_oid); X500Signer CA = certs.getSigner(SHAalg, priv); FileInputStream bis = new FileInputStream("Servercert.crt"); X509Cert srvrCert = new X509Cert(); srvrCert.decode(bis); BigInt i = srvrCert.getSerialNumber(); byte[] signedcert = srvrCert.encodeAndSign(i, CA); FileOutputStream certfos = new FileOutputStream("signedcert.crt"); certfos.write(signedcert); certfos.close(); } catch (Exception e) { System.out.println("Exception: " + e); } } } --- NEW FILE: keystoreimport.properties --- cert.type=x509 cert1.filename=cert1filename # Fill in as many certs as is required for the full cert chain # then edit the KeyStoreImport.java file (and recompile) to load these certs #cert2.filename=cert2filename #cert3.filename=cert3filename cacert.filename=cacertfilename # Get these numeric values from openssl -rsa -inform PEM|DER -in rsaprivekeyfile -text rsaprivkey.modulus=**big-hex-number** rsaprivkey.modulus.radix=16 rsaprivkey.publicExponent=**medium-sized-number** rsaprivkey.publicExponent.radix=10 rsaprivkey.privateExponent=**big-hex-number** rsaprivkey.privateExponent.radix=16 rsaprivkey.prime1=**big-hex-number** rsaprivkey.prime1.radix=16 rsaprivkey.prime2=**big-hex-number** rsaprivkey.prime2.radix=16 rsaprivkey.exponent1=**big-hex-number** rsaprivkey.exponent1.radix=16 rsaprivkey.exponent2=**big-hex-number** rsaprivkey.exponent2.radix=16 rsaprivkey.coefficient=**big-hex-number** rsaprivkey.coefficient.radix=16 --- NEW FILE: signedcert.crt --- 0þ0¼;g0*HÎ8 tucows1 0Uoxrs10U Tucows-CA0 010524050439Z 010822050439Z0e10 UCA10UOntario10UToronto10 U tucows1 0Uoxrs10U developer0·0,*HÎ80 zÃÏêÚÊm~õù´0*HÎ8 --- NEW FILE: ssl.properties --- ssl.protocol=TLS ssl.keymanagerfactory.format=SunX509 ssl.keystore.format=JKS ssl.keystore.file=ServerStore ssl.keystore.passphrase=Server ssl.cacert.alias=cacert ssl.signedcert.alias=signedcert ssl.signedcert.passphrase=openxrs |
From: Daniel M. <tub...@us...> - 2003-04-09 19:03:57
|
Update of /cvsroot/epp-rtk/epp-rtk/java/ssl/old-ssl In directory sc8-pr-cvs1:/tmp/cvs-serv20043/old-ssl Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/ssl/old-ssl added to the repository |
From: Daniel M. <tub...@us...> - 2003-04-09 18:32:36
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/xml In directory sc8-pr-cvs1:/tmp/cvs-serv3482/xml Modified Files: EPPGreeting.java EPPXMLBase.java Log Message: some bug fixes implemented in the afilias .org custom RTK being merge back into the SF rtk Index: EPPGreeting.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/xml/EPPGreeting.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EPPGreeting.java 20 Mar 2003 22:42:00 -0000 1.1 --- EPPGreeting.java 9 Apr 2003 18:32:32 -0000 1.2 *************** *** 63,97 **** static { ! dcp_access_string_to_type_hash_ = new Hashtable(); ! dcp_access_string_to_type_hash_.put("all", epp_dcpAccessType.ALL); ! dcp_access_string_to_type_hash_.put("none", epp_dcpAccessType.NONE_ACCESS); ! dcp_access_string_to_type_hash_.put("null", epp_dcpAccessType.NULL_ACCESS); ! dcp_access_string_to_type_hash_.put("other", epp_dcpAccessType.OTHER); ! dcp_access_string_to_type_hash_.put("personal", epp_dcpAccessType.PERSONAL); ! dcp_access_string_to_type_hash_.put("personalAndOther", epp_dcpAccessType.PERSONAL); ! dcp_purpose_string_to_type_hash_ = new Hashtable(); ! dcp_purpose_string_to_type_hash_.put("admin", epp_dcpPurposeType.ADMIN); ! dcp_purpose_string_to_type_hash_.put("contact", epp_dcpPurposeType.CONTACT); ! dcp_purpose_string_to_type_hash_.put("other", epp_dcpPurposeType.OTHER_PURPOSE); ! dcp_purpose_string_to_type_hash_.put("prov", epp_dcpPurposeType.PROV); ! dcp_recipient_string_to_type_hash_ = new Hashtable(); ! dcp_recipient_string_to_type_hash_.put("other", epp_dcpRecipientType.OTHER_RECIPIENT); ! dcp_recipient_string_to_type_hash_.put("ours", epp_dcpRecipientType.OURS); ! dcp_recipient_string_to_type_hash_.put("public", epp_dcpRecipientType.PUBLIK); ! dcp_recipient_string_to_type_hash_.put("same", epp_dcpRecipientType.SAME); ! dcp_recipient_string_to_type_hash_.put("unrelated", epp_dcpRecipientType.UNRELATED); ! dcp_retention_string_to_type_hash_ = new Hashtable(); ! dcp_retention_string_to_type_hash_.put("business", epp_dcpRetentionType.BUSINESS); ! dcp_retention_string_to_type_hash_.put("indefinite", epp_dcpRetentionType.INDEFINITE); ! dcp_retention_string_to_type_hash_.put("legal", epp_dcpRetentionType.LEGAL); ! dcp_retention_string_to_type_hash_.put("none", epp_dcpRetentionType.NONE); ! dcp_retention_string_to_type_hash_.put("stated", epp_dcpRetentionType.STATED); ! dcp_expiry_string_to_type_hash_ = new Hashtable(); ! dcp_expiry_string_to_type_hash_.put("absolute", epp_dcpExpiryType.ABSOLUTE); ! dcp_expiry_string_to_type_hash_.put("relative", epp_dcpExpiryType.RELATIVE); } --- 63,97 ---- static { ! dcp_access_string_to_type_hash_ = new Hashtable(); ! dcp_access_string_to_type_hash_.put("all", epp_dcpAccessType.ALL); ! dcp_access_string_to_type_hash_.put("none", epp_dcpAccessType.NONE_ACCESS); ! dcp_access_string_to_type_hash_.put("null", epp_dcpAccessType.NULL_ACCESS); ! dcp_access_string_to_type_hash_.put("other", epp_dcpAccessType.OTHER); ! dcp_access_string_to_type_hash_.put("personal", epp_dcpAccessType.PERSONAL); ! dcp_access_string_to_type_hash_.put("personalAndOther", epp_dcpAccessType.PERSONAL); ! dcp_purpose_string_to_type_hash_ = new Hashtable(); ! dcp_purpose_string_to_type_hash_.put("admin", epp_dcpPurposeType.ADMIN); ! dcp_purpose_string_to_type_hash_.put("contact", epp_dcpPurposeType.CONTACT); ! dcp_purpose_string_to_type_hash_.put("other", epp_dcpPurposeType.OTHER_PURPOSE); ! dcp_purpose_string_to_type_hash_.put("prov", epp_dcpPurposeType.PROV); ! dcp_recipient_string_to_type_hash_ = new Hashtable(); ! dcp_recipient_string_to_type_hash_.put("other", epp_dcpRecipientType.OTHER_RECIPIENT); ! dcp_recipient_string_to_type_hash_.put("ours", epp_dcpRecipientType.OURS); ! dcp_recipient_string_to_type_hash_.put("public", epp_dcpRecipientType.PUBLIK); ! dcp_recipient_string_to_type_hash_.put("same", epp_dcpRecipientType.SAME); ! dcp_recipient_string_to_type_hash_.put("unrelated", epp_dcpRecipientType.UNRELATED); ! dcp_retention_string_to_type_hash_ = new Hashtable(); ! dcp_retention_string_to_type_hash_.put("business", epp_dcpRetentionType.BUSINESS); ! dcp_retention_string_to_type_hash_.put("indefinite", epp_dcpRetentionType.INDEFINITE); ! dcp_retention_string_to_type_hash_.put("legal", epp_dcpRetentionType.LEGAL); ! dcp_retention_string_to_type_hash_.put("none", epp_dcpRetentionType.NONE); ! dcp_retention_string_to_type_hash_.put("stated", epp_dcpRetentionType.STATED); ! dcp_expiry_string_to_type_hash_ = new Hashtable(); ! dcp_expiry_string_to_type_hash_.put("absolute", epp_dcpExpiryType.ABSOLUTE); ! dcp_expiry_string_to_type_hash_.put("relative", epp_dcpExpiryType.RELATIVE); } *************** *** 185,189 **** Node service_menu = null; ! Node dcp = null; for (int count = 0; count < greeting_nodes.getLength(); count++) --- 185,189 ---- Node service_menu = null; ! Node dcp = null; for (int count = 0; count < greeting_nodes.getLength(); count++) *************** *** 199,210 **** if (service_menu != null) { ! epp_ServiceMenu svc_menu = new epp_ServiceMenu(); NodeList inner_nodes = service_menu.getChildNodes(); List service_list = (List)new ArrayList(); ! List extension_list = (List)new ArrayList(); List version_list = (List)new ArrayList(); List lang_list = (List)new ArrayList(); ! Node service_extension = null; for (int count = 0; count < inner_nodes.getLength(); count++) --- 199,210 ---- if (service_menu != null) { ! epp_ServiceMenu svc_menu = new epp_ServiceMenu(); NodeList inner_nodes = service_menu.getChildNodes(); List service_list = (List)new ArrayList(); ! List extension_list = (List)new ArrayList(); List version_list = (List)new ArrayList(); List lang_list = (List)new ArrayList(); ! Node service_extension = null; for (int count = 0; count < inner_nodes.getLength(); count++) *************** *** 214,218 **** if ( a_node.getNodeName().equals("version") ) { version_list.add(a_node.getFirstChild().getNodeValue()); } if ( a_node.getNodeName().equals("lang") ) { lang_list.add(a_node.getFirstChild().getNodeValue()); } ! if ( a_node.getNodeName().equals("svcExtension") ) { service_extension = a_node; } if ( a_node.getNodeName().equals("objURI") ) { service_list.add(a_node.getFirstChild().getNodeValue()); } } --- 214,218 ---- if ( a_node.getNodeName().equals("version") ) { version_list.add(a_node.getFirstChild().getNodeValue()); } if ( a_node.getNodeName().equals("lang") ) { lang_list.add(a_node.getFirstChild().getNodeValue()); } ! if ( a_node.getNodeName().equals("svcExtension") ) { service_extension = a_node; } if ( a_node.getNodeName().equals("objURI") ) { service_list.add(a_node.getFirstChild().getNodeValue()); } } *************** *** 220,304 **** svc_menu.m_versions = convertListToStringArray(version_list); svc_menu.m_langs = convertListToStringArray(lang_list); ! svc_menu.m_services = convertListToStringArray(service_list); ! if (service_extension != null) { ! NodeList ext_nodes = service_extension.getChildNodes(); ! for (int count = 0; count < ext_nodes.getLength(); count++) ! { ! Node a_node = ext_nodes.item(count); ! if ( a_node.getNodeName().equals("extURI") ) { extension_list.add(a_node.getFirstChild().getNodeValue()); } ! } ! } ! if (extension_list.size() > 0) ! { ! svc_menu.m_extensions = convertListToStringArray(extension_list); ! } ! greeting_.m_svc_menu = svc_menu; } ! if (dcp != null) { ! epp_DataCollectionPolicy dc_policy = new epp_DataCollectionPolicy(); NodeList inner_nodes = dcp.getChildNodes(); List statement_list = (List)new ArrayList(); for (int count = 0; count < inner_nodes.getLength(); count++) { Node a_node = inner_nodes.item(count); if ( a_node.getNodeName().equals("access") ) ! { ! String type = a_node.getFirstChild().getNodeName().toLowerCase(); ! dc_policy.m_access = (epp_dcpAccessType)dcp_access_string_to_type_hash_.get(type); ! } if ( a_node.getNodeName().equals("statement") ) ! { ! NodeList s_inner_nodes = a_node.getChildNodes(); ! NodeList purpose_nodes = null; ! NodeList recipients_nodes = null; ! List purpose_list = (List)new ArrayList(); ! List recipients_list = (List)new ArrayList(); ! epp_dcpStatement dcp_statement = new epp_dcpStatement(); ! for (int i = 0; i < s_inner_nodes.getLength(); i++) ! { ! Node s_node = s_inner_nodes.item(i); ! if (s_node.getNodeName().equals("purpose")) { purpose_nodes = s_node.getChildNodes(); } ! if (s_node.getNodeName().equals("recipient")) { recipients_nodes = s_node.getChildNodes(); } ! if (s_node.getNodeName().equals("retention")) ! { ! String type = s_node.getFirstChild().getNodeName().toLowerCase(); ! dcp_statement.m_retention = (epp_dcpRetentionType)dcp_retention_string_to_type_hash_.get(type); ! } ! } ! if ( purpose_nodes != null ) ! { ! for (int i = 0; i < purpose_nodes.getLength(); i++) ! { ! String type = purpose_nodes.item(i).getNodeName().toLowerCase(); ! purpose_list.add(dcp_purpose_string_to_type_hash_.get(type)); ! } ! dcp_statement.m_purposes = (epp_dcpPurposeType[])convertListToArray(epp_dcpPurposeType.class, purpose_list); ! } ! if ( recipients_nodes != null ) ! { ! for (int i = 0; i < recipients_nodes.getLength(); i++) ! { ! String type = recipients_nodes.item(i).getNodeName().toLowerCase(); epp_dcpRecipient recip = new epp_dcpRecipient((epp_dcpRecipientType)dcp_recipient_string_to_type_hash_.get(type), null); ! recipients_list.add(recip); ! } ! dcp_statement.m_recipients = (epp_dcpRecipient[])convertListToArray(epp_dcpRecipientType.class, recipients_list); ! } ! statement_list.add(dcp_statement); } ! } ! dc_policy.m_statements = (epp_dcpStatement[])convertListToArray(epp_dcpStatement.class, statement_list); ! greeting_.m_dcp = dc_policy; ! } } catch (SAXException xcp) --- 220,315 ---- svc_menu.m_versions = convertListToStringArray(version_list); svc_menu.m_langs = convertListToStringArray(lang_list); ! svc_menu.m_services = convertListToStringArray(service_list); ! if (service_extension != null) { ! NodeList ext_nodes = service_extension.getChildNodes(); ! for (int count = 0; count < ext_nodes.getLength(); count++) ! { ! Node a_node = ext_nodes.item(count); ! if ( a_node.getNodeName().equals("extURI") ) { extension_list.add(a_node.getFirstChild().getNodeValue()); } ! } ! } ! if (extension_list.size() > 0) ! { ! svc_menu.m_extensions = convertListToStringArray(extension_list); ! } ! greeting_.m_svc_menu = svc_menu; } ! if (dcp != null) { ! epp_DataCollectionPolicy dc_policy = new epp_DataCollectionPolicy(); NodeList inner_nodes = dcp.getChildNodes(); List statement_list = (List)new ArrayList(); + debug(DEBUG_LEVEL_THREE,method_name,"Going through the DCP elements"); + for (int count = 0; count < inner_nodes.getLength(); count++) { Node a_node = inner_nodes.item(count); + + debug(DEBUG_LEVEL_THREE,method_name,"DCP node name: ["+a_node.getNodeName()+"]"); if ( a_node.getNodeName().equals("access") ) ! { ! String type = a_node.getFirstChild().getNodeName().toLowerCase(); ! dc_policy.m_access = (epp_dcpAccessType)dcp_access_string_to_type_hash_.get(type); ! } ! if ( a_node.getNodeName().equals("expiry") ) ! { ! String type = a_node.getFirstChild().getNodeName().toLowerCase(); ! dc_policy.m_expiry = new epp_dcpExpiry(); ! dc_policy.m_expiry.m_type = (epp_dcpExpiryType)dcp_expiry_string_to_type_hash_.get(type); ! dc_policy.m_expiry.m_value = a_node.getFirstChild().getNodeValue(); ! } if ( a_node.getNodeName().equals("statement") ) ! { ! NodeList s_inner_nodes = a_node.getChildNodes(); ! NodeList purpose_nodes = null; ! NodeList recipients_nodes = null; ! List purpose_list = (List)new ArrayList(); ! List recipients_list = (List)new ArrayList(); ! epp_dcpStatement dcp_statement = new epp_dcpStatement(); ! for (int i = 0; i < s_inner_nodes.getLength(); i++) ! { ! Node s_node = s_inner_nodes.item(i); ! if (s_node.getNodeName().equals("purpose")) { purpose_nodes = s_node.getChildNodes(); } ! if (s_node.getNodeName().equals("recipient")) { recipients_nodes = s_node.getChildNodes(); } ! if (s_node.getNodeName().equals("retention")) ! { ! String type = s_node.getFirstChild().getNodeName().toLowerCase(); ! dcp_statement.m_retention = (epp_dcpRetentionType)dcp_retention_string_to_type_hash_.get(type); ! } ! } ! if ( purpose_nodes != null ) ! { ! for (int i = 0; i < purpose_nodes.getLength(); i++) ! { ! String type = purpose_nodes.item(i).getNodeName().toLowerCase(); ! purpose_list.add(dcp_purpose_string_to_type_hash_.get(type)); ! } ! dcp_statement.m_purposes = (epp_dcpPurposeType[])convertListToArray(epp_dcpPurposeType.class, purpose_list); ! } ! if ( recipients_nodes != null ) ! { ! for (int i = 0; i < recipients_nodes.getLength(); i++) ! { ! String type = recipients_nodes.item(i).getNodeName().toLowerCase(); epp_dcpRecipient recip = new epp_dcpRecipient((epp_dcpRecipientType)dcp_recipient_string_to_type_hash_.get(type), null); ! recipients_list.add(recip); ! } ! dcp_statement.m_recipients = (epp_dcpRecipient[])convertListToArray(epp_dcpRecipient.class, recipients_list); ! } ! statement_list.add(dcp_statement); } ! } ! dc_policy.m_statements = (epp_dcpStatement[])convertListToArray(epp_dcpStatement.class, statement_list); ! greeting_.m_dcp = dc_policy; ! } } catch (SAXException xcp) Index: EPPXMLBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/xml/EPPXMLBase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EPPXMLBase.java 20 Mar 2003 22:42:00 -0000 1.1 --- EPPXMLBase.java 9 Apr 2003 18:32:32 -0000 1.2 *************** *** 642,650 **** } ! addXMLElement(doc, auth_info_element, object_name+":"+auth_info.m_type, auth_info.m_value); ! if ( auth_info.m_roid != null ) { ! auth_info_element.setAttribute( "roid", auth_info.m_roid ); } --- 642,650 ---- } ! Element authinfo_sub_el = addXMLElement(doc, auth_info_element, object_name+":"+auth_info.m_type, auth_info.m_value); ! if ( auth_info.m_roid != null && auth_info.m_roid.length() > 0 ) { ! authinfo_sub_el.setAttribute( "roid", auth_info.m_roid ); } *************** *** 775,798 **** parser.setFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace", false); - if ( xml_ != null ) - { - try - { - // in some testing with the .info registry, we found that - // Xerces does not like spaces between tags and doesn't like - // XML header. So let's get rid of them! - - // First eliminate the spaces between the tags - RE regexp = new RE("> +<"); - xml_ = regexp.subst(xml_, "><", RE.REPLACE_ALL); - // Then eliminate the xml header - regexp = new RE(" *<[?].+[?]>"); - xml_ = regexp.subst(xml_, "", RE.REPLACE_ALL); - } - catch (RESyntaxException xcp) - { - System.out.println("apparently, a bad regex! The nerve!"); - } - } parser.parse(new InputSource(new ByteArrayInputStream(extension_string.getBytes()))); Document document = parser.getDocument(); --- 775,778 ---- |
From: Daniel M. <tub...@us...> - 2003-04-09 18:32:36
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/example In directory sc8-pr-cvs1:/tmp/cvs-serv3482/example Modified Files: ContactExample.java DomainExample.java HostExample.java SessionExample.java Log Message: some bug fixes implemented in the afilias .org custom RTK being merge back into the SF rtk Index: ContactExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/example/ContactExample.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ContactExample.java 20 Mar 2003 22:41:59 -0000 1.1 --- ContactExample.java 9 Apr 2003 18:32:32 -0000 1.2 *************** *** 80,87 **** } - // calling setDebugLevel() with no params makes the RTK - // read the "rtk.debuglevel" property from rtk.properties file - RTKBase.setDebugLevel(); - String epp_contact_name = args[0]; String epp_contact_port_string = args[1]; --- 80,83 ---- Index: DomainExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/example/DomainExample.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DomainExample.java 20 Mar 2003 22:41:59 -0000 1.1 --- DomainExample.java 9 Apr 2003 18:32:32 -0000 1.2 *************** *** 82,89 **** } - // calling setDebugLevel() with no params makes the RTK - // read the "rtk.debuglevel" property from rtk.properties file - RTKBase.setDebugLevel(); - String epp_host_name = args[0]; String epp_host_port_string = args[1]; --- 82,85 ---- *************** *** 392,397 **** // create succeeds. Feel free to use other values // in this example. ! name_server_list.add("ns1.domaindirect.com"); ! name_server_list.add("ns2.domaindirect.com"); domain_create_request.m_name_servers = EPPXMLBase.convertListToStringArray(name_server_list); --- 388,393 ---- // create succeeds. Feel free to use other values // in this example. ! name_server_list.add("ns1.valid.org"); ! name_server_list.add("ns2.valid.org"); domain_create_request.m_name_servers = EPPXMLBase.convertListToStringArray(name_server_list); *************** *** 567,572 **** // String array. List name_server_list = (List)new ArrayList(); ! name_server_list.add("ns1.domain.info"); ! name_server_list.add("ns2.domain.info"); add.m_name_servers = EPPXMLBase.convertListToStringArray(name_server_list); // We also want to add the clientTransferProhibited status to the domain. --- 563,568 ---- // String array. List name_server_list = (List)new ArrayList(); ! name_server_list.add("ns1.valid.org"); ! name_server_list.add("ns2.valid.org"); add.m_name_servers = EPPXMLBase.convertListToStringArray(name_server_list); // We also want to add the clientTransferProhibited status to the domain. *************** *** 587,592 **** // Now to remove the two old nameservers. name_server_list = (List)new ArrayList(); ! name_server_list.add("ns1.domaindirect.com"); ! name_server_list.add("ns2.domaindirect.com"); remove.m_name_servers = EPPXMLBase.convertListToStringArray(name_server_list); --- 583,588 ---- // Now to remove the two old nameservers. name_server_list = (List)new ArrayList(); ! name_server_list.add("ns1.valid.org"); ! name_server_list.add("ns2.valid.org"); remove.m_name_servers = EPPXMLBase.convertListToStringArray(name_server_list); Index: HostExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/example/HostExample.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HostExample.java 20 Mar 2003 22:41:59 -0000 1.1 --- HostExample.java 9 Apr 2003 18:32:32 -0000 1.2 *************** *** 79,86 **** } - // calling setDebugLevel() with no params makes the RTK - // read the "rtk.debuglevel" property from rtk.properties file - RTKBase.setDebugLevel(); - String epp_host_name = args[0]; String epp_host_port_string = args[1]; --- 79,82 ---- Index: SessionExample.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/example/SessionExample.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SessionExample.java 20 Mar 2003 22:41:59 -0000 1.1 --- SessionExample.java 9 Apr 2003 18:32:32 -0000 1.2 *************** *** 90,97 **** } - // calling setDebugLevel() with no params makes the RTK - // read the "rtk.debuglevel" property from rtk.properties file - RTKBase.setDebugLevel(); - String epp_host_name = args[0]; String epp_host_port_string = args[1]; --- 90,93 ---- *************** *** 310,313 **** --- 306,310 ---- epp_ContactNameAddress[] name_address = new epp_ContactNameAddress[1]; name_address[0] = new epp_ContactNameAddress(); + name_address[0].setType( epp_ContactPostalInfoType.INT ); name_address[0].setName( "John Doe" ); name_address[0].setOrg( "ACME Solutions" ); *************** *** 369,372 **** --- 366,370 ---- epp_ContactNameAddress[] name_address = new epp_ContactNameAddress[1]; name_address[0] = new epp_ContactNameAddress(); + name_address[0].setType( epp_ContactPostalInfoType.INT ); name_address[0].setName( "Jane Doe" ); name_address[0].setOrg( "ACME Technicians" ); |
From: Daniel M. <tub...@us...> - 2003-04-09 18:32:36
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk In directory sc8-pr-cvs1:/tmp/cvs-serv3482 Modified Files: RTKBase.java Log Message: some bug fixes implemented in the afilias .org custom RTK being merge back into the SF rtk Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/RTKBase.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** RTKBase.java 24 Mar 2003 21:18:04 -0000 1.3 --- RTKBase.java 9 Apr 2003 18:32:32 -0000 1.4 *************** *** 86,89 **** --- 86,94 ---- private static Logger logger_ = null; + static + { + setDebugLevel(); + } + /** * DateFormat for "yyyy-MM-dd'T'hh:mm:ss.S'Z'". |
From: Daniel M. <tub...@us...> - 2003-04-09 18:01:54
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/transport In directory sc8-pr-cvs1:/tmp/cvs-serv19609/src/com/tucows/oxrs/epp0705/rtk/transport Modified Files: EPPTransportTCPTLS.java Log Message: improvements from the afilias .org EPP RTK -- allow for configuration keystore format specification Index: EPPTransportTCPTLS.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/transport/EPPTransportTCPTLS.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EPPTransportTCPTLS.java 20 Mar 2003 22:41:59 -0000 1.1 --- EPPTransportTCPTLS.java 9 Apr 2003 18:01:48 -0000 1.2 *************** *** 132,136 **** if ( ks_ == null ) { ! ks_ = KeyStore.getInstance(((String)ssl_props.get("ssl.keystore.format"))); ks_.load(new FileInputStream(ssl_props_location + "/" + ((String)ssl_props.get("ssl.keystore.file"))), passphrase1); --- 132,143 ---- if ( ks_ == null ) { ! if ( ssl_props.get("ssl.keystore.provider") == null ) ! { ! ks_ = KeyStore.getInstance((String)ssl_props.get("ssl.keystore.format")); ! } ! else ! { ! ks_ = KeyStore.getInstance((String)ssl_props.get("ssl.keystore.format"), (String)ssl_props.get("ssl.keystore.provider")); ! } ks_.load(new FileInputStream(ssl_props_location + "/" + ((String)ssl_props.get("ssl.keystore.file"))), passphrase1); |
From: Daniel M. <tub...@us...> - 2003-03-31 21:10:31
|
Update of /cvsroot/epp-rtk/epp-rtk/java/doc/0705 In directory sc8-pr-cvs1:/tmp/cvs-serv7741 Modified Files: epp-rtk-user-guide.html Log Message: first draft update of the RTK User's guide for epp 07/05 Index: epp-rtk-user-guide.html =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/doc/0705/epp-rtk-user-guide.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp-rtk-user-guide.html 21 Mar 2003 15:09:41 -0000 1.1 --- epp-rtk-user-guide.html 31 Mar 2003 21:10:25 -0000 1.2 *************** *** 14,21 **** User Guide</center></font></H1> ! <h3><center>Version 0.5.0</center></h3> ! <h3><center>March 18, 2002</center></h3> ! <h2><center>Created by: Tucows Inc.</center></h2> <hr> --- 14,21 ---- User Guide</center></font></H1> [...1276 lines suppressed...] ! EPP RTK Java, Xerces, BouncyCastle and Ant Jar Files, directory: epp-rtk/java/lib <P> ! Java Compiled IDLs (Top level Packages), directory: epp-rtk/java/src/org/openrtk/idl/epp0705 </blockquote> *************** *** 5024,5028 **** <blockquote> ! EPP Internet-Drafts versions 04/02, directory: epp-rtk/epp <P> --- 5057,5061 ---- <blockquote> ! EPP Internet-Drafts versions 07/05, directory: epp-rtk/epp/0705 <P> |
From: Daniel M. <tub...@us...> - 2003-03-31 20:08:13
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/example In directory sc8-pr-cvs1:/tmp/cvs-serv5215/src/com/tucows/oxrs/epp0705/rtk/example Added Files: PollExample.java Log Message: ported the poll example from 0402 to 0705 --- NEW FILE: PollExample.java --- /* ** ** EPP RTK Java ** Copyright (C) 2003, LibertyRMS, Inc. ** ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ** */ /* * $Header: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/example/PollExample.java,v 1.1 2003/03/31 20:08:04 tubadanm Exp $ * $Revision: 1.1 $ * $Date: 2003/03/31 20:08:04 $ */ package com.tucows.oxrs.epp0705.rtk.example; import java.util.*; import java.io.*; import com.tucows.oxrs.epp0705.rtk.*; import com.tucows.oxrs.epp0705.rtk.xml.*; import org.openrtk.idl.epp0705.*; import org.openrtk.idl.epp0705.domain.*; import org.openrtk.idl.epp0705.host.*; import org.openrtk.idl.epp0705.contact.*; /** * Example code for a querying and acknowledging Poll messages. * * @author Daniel Manley * @version $Revision: 1.1 $ $Date: 2003/03/31 20:08:04 $ **/ public class PollExample { private static String USAGE = "Usage: com.tucows.oxrs.epp0705.rtk.example.PollExample epp_host_name epp_host_port epp_client_id epp_password"; /** * Main of the example. */ public static void main(String args[]) { // This date will be used in the client trid // because the .biz registry requires unique // trid's per client session. Date current_time = new Date(); System.out.println("Start of the Poll example"); try { epp_Command command_data = null; if (args.length < 5) { System.err.println(USAGE); System.exit(1); } // calling setDebugLevel() with no params makes the RTK // read the "rtk.debuglevel" property from rtk.properties file RTKBase.setDebugLevel(); String epp_host_name = args[0]; String epp_host_port_string = args[1]; String epp_client_id = args[2]; String epp_password = args[3]; int epp_host_port = Integer.parseInt(epp_host_port_string); EPPClient epp_client = new EPPClient(epp_host_name, epp_host_port, epp_client_id, epp_password); epp_client.setLang("en"); System.out.println("Connecting to the EPP Server and getting the greeting"); /* * Uncomment following line if you don't want to send RTK version * number on Login. Although Liberty RMS recomends to use this unspec * tag on Login request. */ //epp_client.setVersionSentOnLogin( false ); epp_Greeting greeting = epp_client.connectAndGetGreeting(); System.out.println("greeting's server: ["+greeting.getServerId()+"]"); System.out.println("greeting's server-date: ["+greeting.getServerDate()+"]"); epp_ServiceMenu svc_menu = greeting.getSvcMenu(); if ( svc_menu != null ) { if ( svc_menu.getVersions() != null && svc_menu.getVersions().length > 0 ) { System.out.println("svc_menu's version: ["+svc_menu.getVersions()[0]+"]"); } if ( svc_menu.getLangs() != null && svc_menu.getLangs().length > 0 ) { System.out.println("svc_menu's lang: ["+svc_menu.getLangs()[0]+"]"); } } // The .biz registry requires unique client trid's for // a session, so we're using the date here to keep it unique String client_trid = "ABC:"+epp_client_id+":"+current_time.getTime(); command_data = new epp_Command(); command_data.setClientTrid( client_trid ); System.out.println("Logging into the EPP Server"); epp_client.login(client_trid); boolean keep_polling = true; while ( keep_polling ) { String message_id = ""; int response_code = 1000; epp_PollRsp poll_response; epp_Response response; // *************************** // Poll (for waiting messages) // *************************** System.out.println("Polling the server..."); current_time = new Date(); client_trid = "ABC:"+epp_client_id+":"+current_time.getTime(); poll_response = epp_client.poll(client_trid); response = poll_response.getRsp(); System.out.println("Poll results: "+response); System.out.println("Poll ResData type: "+poll_response.getResData().getType()); System.out.println("Poll ResData: "+poll_response.getResData()); message_id = response.getMessageQueue().getId(); response_code = response.getResults()[0].getCode(); if ( response_code != epp_Session.EPP_COMMAND_COMPLETED_SUCCESSFULLY_NO_MESSAGES ) { BufferedReader buffed_reader = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Do you wish to acknowledge this poll message [y]? "); String answer = buffed_reader.readLine(); while ( ( answer != null ) && ( answer.length() != 0 ) && ( ! answer.equalsIgnoreCase("y") ) && ( ! answer.equalsIgnoreCase("n") ) ) { answer = buffed_reader.readLine(); } if ( ! answer.equalsIgnoreCase("n") ) { System.out.println("Going to acknowledge poll message id ["+message_id+"]"); // *************************** // Poll (acknowledge a message) // *************************** System.out.println("Polling the server..."); current_time = new Date(); client_trid = "ABC:"+epp_client_id+":"+current_time.getTime(); poll_response = epp_client.poll(client_trid, message_id); response = poll_response.getRsp(); System.out.println("Poll results: "+response); System.out.println("Poll ResData: "+poll_response.getResData()); } else { System.out.println("Going to reject the transfer"); keep_polling = false; } } else { keep_polling = false; } } // All done with this session, so let's log out... System.out.println("Logging out from the EPP Server"); epp_client.logout(client_trid); // ... and disconnect System.out.println("Disconnecting from the EPP Server"); epp_client.disconnect(); } catch ( epp_XMLException xcp ) { System.err.println("epp_XMLException! ["+xcp.getErrorMessage()+"]"); } catch ( epp_Exception xcp ) { System.err.println("epp_Exception!"); epp_Result[] results = xcp.getDetails(); // We're taking advantage epp_Result's toString() here // for debugging. Take a look at the javadocs for // the full list of attributes in the class. System.err.println("\tresult: ["+results[0]+"]"); } catch ( Exception xcp ) { System.err.println("Exception! ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); xcp.printStackTrace(); } } } |
From: Daniel M. <tub...@us...> - 2003-03-24 21:22:11
|
Update of /cvsroot/epp-rtk/epp-rtk/java In directory sc8-pr-cvs1:/tmp/cvs-serv25884 Modified Files: VERSION.TXT Log Message: added notes about the log4j addition and ant upgrade Index: VERSION.TXT =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/VERSION.TXT,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** VERSION.TXT 24 Mar 2003 15:39:53 -0000 1.20 --- VERSION.TXT 24 Mar 2003 21:22:03 -0000 1.21 *************** *** 35,38 **** --- 35,43 ---- + Updates to the SSL code for compilation with Java SDK 1.4. + + Upgraded to Ant 1.5.2 (to solve problems in + javadoc generation) + + Added usage of log4j to do debug logging + which involved new jar, changes to rtk.properties + and changes to all EPP versions of RTKBase class epp-rtk-java-0.5.0 - March 20, 2002 |
From: Daniel M. <tub...@us...> - 2003-03-24 21:18:39
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0604/rtk In directory sc8-pr-cvs1:/tmp/cvs-serv11196/src/com/tucows/oxrs/epp0604/rtk Modified Files: RTKBase.java Log Message: updates to the RTKBase class in all EPP versions to use log4j for logging and added config for it in rtk.properties. upgraded ant jar to 1.5.2 because javadoc was failing (update license as well) added log4j jar and licence : Modified Files: : LICENSE.ANT build.bat build.sh build.xml run_example.bat : run_example.sh etc/rtk.properties lib/ant.jar : src/com/tucows/oxrs/epp02/rtk/RTKBase.java : src/com/tucows/oxrs/epp0402/rtk/RTKBase.java : src/com/tucows/oxrs/epp0503/rtk/RTKBase.java : src/com/tucows/oxrs/epp0604/rtk/RTKBase.java : src/com/tucows/oxrs/epp0705/rtk/RTKBase.java : Added Files: : LICENSE.LOG4J lib/log4j.jar Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0604/rtk/RTKBase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RTKBase.java 21 Mar 2003 15:52:25 -0000 1.1 --- RTKBase.java 24 Mar 2003 21:18:03 -0000 1.2 *************** *** 33,36 **** --- 33,37 ---- import java.util.*; import java.io.*; + import org.apache.log4j.*; /** *************** *** 82,85 **** --- 83,88 ---- private static Properties rtk_properties_ = null; + private static Logger logger_ = null; + /** * DateFormat for "yyyy-MM-dd'T'hh:mm:ss.S'Z'". *************** *** 116,120 **** try { ! String rtk_debuglevel_str = (String) RTKBase.getRTKProperties().getProperty("rtk.debuglevel"); rtk_debuglevel = Integer.parseInt(rtk_debuglevel_str); } --- 119,123 ---- try { ! String rtk_debuglevel_str = (String) RTKBase.getRTKProperties().getProperty("rtk.debug.level"); rtk_debuglevel = Integer.parseInt(rtk_debuglevel_str); } *************** *** 123,127 **** // Couldn't parse the debuglevel setting -- maybe it wasn't an integer // Anyhoo -- we'll just use the default of level 1. ! System.err.println("couldn't parse the rtk.debuglevel ... maybe it wasn't a number"); } --- 126,130 ---- // Couldn't parse the debuglevel setting -- maybe it wasn't an integer // Anyhoo -- we'll just use the default of level 1. ! System.err.println("couldn't parse the rtk.debug.level property ... maybe it wasn't a number"); } *************** *** 165,169 **** if ( debug_level_ >= level ) { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); } } --- 168,190 ---- if ( debug_level_ >= level ) { ! String advancedLogging; ! try ! { ! advancedLogging = RTKBase.getRTKProperties().getProperty("rtk.debug.advancedLogging"); ! } ! catch ( Exception prop_xcp ) ! { ! advancedLogging = "false"; ! } ! ! if ( advancedLogging.equalsIgnoreCase("false") || ! getLogger() == null ) ! { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); ! } ! else ! { ! getLogger().debug(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); ! } } } *************** *** 185,190 **** if ( debug_level_ >= level ) { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(debug_print_stream_); } } --- 206,230 ---- if ( debug_level_ >= level ) { ! String advancedLogging; ! try ! { ! advancedLogging = RTKBase.getRTKProperties().getProperty("rtk.debug.advancedLogging"); ! } ! catch ( Exception prop_xcp ) ! { ! advancedLogging = "false"; ! } ! ! if ( advancedLogging.equalsIgnoreCase("false") || ! getLogger() == null ) ! { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(debug_print_stream_); ! } ! else ! { ! getLogger().error(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! getLogger().error(xcp); ! } } } *************** *** 230,233 **** --- 270,297 ---- return rtk_properties_; } + + private synchronized static Logger getLogger() + { + if (logger_ == null) + { + synchronized(RTK_VERSION) + { + try + { + PropertyConfigurator.configure(getRTKProperties()); + + logger_ = Logger.getRootLogger(); + } + catch(Exception xcp) + { + System.err.println("LOGGER: disabled using stderr"); + //xcp.printStackTrace(); + } + } + } + + return logger_; + } + } |
From: Daniel M. <tub...@us...> - 2003-03-24 21:18:39
|
Update of /cvsroot/epp-rtk/epp-rtk/java/lib In directory sc8-pr-cvs1:/tmp/cvs-serv11196/lib Modified Files: ant.jar Added Files: log4j.jar Log Message: updates to the RTKBase class in all EPP versions to use log4j for logging and added config for it in rtk.properties. upgraded ant jar to 1.5.2 because javadoc was failing (update license as well) added log4j jar and licence : Modified Files: : LICENSE.ANT build.bat build.sh build.xml run_example.bat : run_example.sh etc/rtk.properties lib/ant.jar : src/com/tucows/oxrs/epp02/rtk/RTKBase.java : src/com/tucows/oxrs/epp0402/rtk/RTKBase.java : src/com/tucows/oxrs/epp0503/rtk/RTKBase.java : src/com/tucows/oxrs/epp0604/rtk/RTKBase.java : src/com/tucows/oxrs/epp0705/rtk/RTKBase.java : Added Files: : LICENSE.LOG4J lib/log4j.jar --- NEW FILE: log4j.jar --- PK 1à>w×'ñDAÒ`¡b¿½3#·"¾½1XZÃÌì!º'gÌKÑVÍ8ÛdB+×O#º.W]¤bKÕrÆÙò ¡ªöiXÜ4g»0z ¨´É#_Uðkr®V8Úh>©§dÛt¶f÷PK3`W øÅ½qéÛW´»Ê~¡¥U£lÕ¶½¼iâU×ây6Ñ"Ê©ß{ÊXÍ´+¨u¥=H,:K¡ùrû0n\d`È!9Õ<Ù#(Z(¬`Ó°a Ã&¶·±cØBÛp{ûèPÃÝ9t?PKr«¯K ßâ8qRfñ§r3üîó"fE\ñ²*ÏêeKÀº¬n2rIÎYFÕÛ'3Yûj·°&O3ì¤<#gTY+d-CÑ t³3ºÐ¾RÇ1CÑ Å%Inµ¼ÊW %%3P%D xÉùjqHG0ĹæÂ¬¨Kª¼Æèe¢)Ö^uÝ=') zjÊ*;ZgÆ y\µCÔs²zR6þî¢b:Ü_*1-Ïá)¦2K×È&9g)3²ÅJ¢kÉy/d÷]Cà¾Å4vÎA¶ ØZÕªÃÀÓ,-åT&lG'MV<سU`KwÏ=Õ FÈ%6ÕÂxEh´¥ ÓpxÖeY{ÜãHGmª%¹ ¹,å¼!V¤ÔÔm@ºãò¢¹»î©³©a.KÞÝ@òña½lä+õS½Ûh el[¡¨ÈÔ03¤©³CZU'átKèÅ6 =HIH#%â ¯"% ÕïûþòÄÏ\ûAÊt]g|0å§$ìÄE q?%îLKñ×1"á d$t¢KÂlñ¦·pD@_¿e±éE ,ÝUɹ`ãmxG»xOÂapïsÓ»¤Gõr²(ϰ$9íh¤t'å¤VVÕ¤=ù¶øÉ½0" óÇæJ6Æ'Yê0]Ür&GÁö»ô/õì<Yé "Ñ#§6Dö¨¥;'4!jþ©òl¼Ìw;ÓAóÚ¯Y1Æ©1d-Ë*oCÍ üù»üâ³Ú`ëG¿#ÿ#ySø'áÞ-±'|N6´p'}Y7Ò|æ,£¯|3ÑÞpöN·w⻽§ÝöÞH´>HoPGO@KêÔ F¯¡ná-õótÂC´6°ÁVÒxÞ$G°vzJÓö;ý* "öÁ¾* à# phïJ]Eä&S©ôØÄDæèå*Äô¢)ZÄæVÔÓz2ò4Ö"KNRflK6×zr!ülÛ»=§wmîWC*%¸F+Fâ¶¢íùª¼öxjIò»4¹[áùQNãEHt¶¶D#-hºNA-bµ?b)! êi¿VÉ´gò ìuMrÓü®Ô?÷¥üb¸ÞïÃà|9 'tüZf¿8ïKNe¶ Np¼¸aÇË¡Ïϰ"ñyÃòXýxÚqãÞ_ëkqϧÙò3ôø[¼§cÃ:Nâk:Na\ÇøDRñüN*ó¦{ÖMù=ú¤5=ÉÕ²àæj(s_Êõû[µDÕøFq½r7¶!v9Ò}¸7©açj7YÙå:͸¦V!Æç¡ÞdÒÉ]Ôи¡¸sF#÷´i/EçkÚ´¾}ÍãÉ©YsBRL wn âç¿Rt骽L(Y!vg^R¬2¶òý l·:'}&:oäûærC Ûg¥e¢ú-;XhÖ±liê®ë°Üaö'ÕTÒÐÊONh80ùáàü|Wà>JÞpÈ/ªyÕÈK¯Æ#jÜÆ3lóé%Tq<Ò¾ýϨØ+˨¼P;E0×#Ë^G5§±öO¸»ëÐ9ÕP»¨@§¼Qå2D`õÒDwÐáº|.ó÷5ô¢[<nô Ò,- 8î¡íê¡¿ÊбºÎD;W}¶Hv`'µvÒÃÎÀ{½:ÙÃÝ$íeú·FîÓ¢ïMf½ÜáKý8Qô«í£N÷.ÓÙ¶ÓÛEì ûª«rZZ'¢tÈl hæ4|z!fª~סh$Îú¦Ø½Ê¢^óµÿþCf4²§¸Òr±âì+v$Ô¹ÒbdØÏ"w1¦VG<¿½ ÂíWô1~%¡ÃØÅ³_ç>Åóã´p?ÃÌO0ÖÇ1o²ÉpÇÀ·0 ¤à KȨÅ!_]ÆWxï 쥷Ǹ«Iôkô9Ñ~²}bP ´÷*Â+}R§¡ÎÏ丳8ÄP;TßÚywI^4!Eh%¡»i®¡È¸-j\ME1ô©115p©í¡¼Dͧ©ûµ%û#'ÐH KôÃK ZUÁpØ ý ÎøA5*⩸ªpwÇÊÇ*Eºí¤õv%©S§^æî+\}µÞ½ùð½LûônZOïý++rûÜ®WlÞ¥ÆR7¯ÉW?W_/ «)¨ZY0¢x=1ßaB=wLþ(0Vo ÐòUå~Úâ¢ÚyÏFïà¨pT}Åûu&ÀÑé㨨ÜhãýmgýÂ4¯+̽kD[ôkÓ@¥iØÐ>àîLàGdÕïK5Î&oÕ~Ü~ûYäîØ~þHûlÒ~VÓïý¶Ý¾ßeîÞ ß?Ñï§ø]¥Ç7Ø~û··°ß¯5òZý¬ø[p`+Ì6rXÙ:'|[Ý%l µ,áàFsÿäÛá_0Æð:Å+R4w¿Ïh±S¶oäÍ¿KJ JRZæÿ ÍÓªµqë°F¸%p)ïJ °³Ñ8GîoÒynÏãT[¹Wô"Ô'LãO»¡hìb_sv*qå_PKÍõð [...1280 lines suppressed...] Æ (q 1² ö Index: ant.jar =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/lib/ant.jar,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Binary files /tmp/cvsbD5Rwo and /tmp/cvsAmfqlV differ |
From: Daniel M. <tub...@us...> - 2003-03-24 21:18:38
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk In directory sc8-pr-cvs1:/tmp/cvs-serv11196/src/com/tucows/oxrs/epp0402/rtk Modified Files: RTKBase.java Log Message: updates to the RTKBase class in all EPP versions to use log4j for logging and added config for it in rtk.properties. upgraded ant jar to 1.5.2 because javadoc was failing (update license as well) added log4j jar and licence : Modified Files: : LICENSE.ANT build.bat build.sh build.xml run_example.bat : run_example.sh etc/rtk.properties lib/ant.jar : src/com/tucows/oxrs/epp02/rtk/RTKBase.java : src/com/tucows/oxrs/epp0402/rtk/RTKBase.java : src/com/tucows/oxrs/epp0503/rtk/RTKBase.java : src/com/tucows/oxrs/epp0604/rtk/RTKBase.java : src/com/tucows/oxrs/epp0705/rtk/RTKBase.java : Added Files: : LICENSE.LOG4J lib/log4j.jar Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0402/rtk/RTKBase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RTKBase.java 21 Mar 2003 16:35:34 -0000 1.1 --- RTKBase.java 24 Mar 2003 21:18:00 -0000 1.2 *************** *** 33,36 **** --- 33,37 ---- import java.util.*; import java.io.*; + import org.apache.log4j.*; /** *************** *** 82,85 **** --- 83,88 ---- private static Properties rtk_properties_ = null; + private static Logger logger_ = null; + /** * DateFormat for "yyyy-MM-dd'T'hh:mm:ss.0'Z'". *************** *** 116,120 **** try { ! String rtk_debuglevel_str = (String) RTKBase.getRTKProperties().getProperty("rtk.debuglevel"); rtk_debuglevel = Integer.parseInt(rtk_debuglevel_str); } --- 119,123 ---- try { ! String rtk_debuglevel_str = (String) RTKBase.getRTKProperties().getProperty("rtk.debug.level"); rtk_debuglevel = Integer.parseInt(rtk_debuglevel_str); } *************** *** 123,127 **** // Couldn't parse the debuglevel setting -- maybe it wasn't an integer // Anyhoo -- we'll just use the default of level 1. ! System.err.println("couldn't parse the rtk.debuglevel ... maybe it wasn't a number"); } --- 126,130 ---- // Couldn't parse the debuglevel setting -- maybe it wasn't an integer // Anyhoo -- we'll just use the default of level 1. ! System.err.println("couldn't parse the rtk.debug.level property ... maybe it wasn't a number"); } *************** *** 165,169 **** if ( debug_level_ >= level ) { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); } } --- 168,190 ---- if ( debug_level_ >= level ) { ! String advancedLogging; ! try ! { ! advancedLogging = RTKBase.getRTKProperties().getProperty("rtk.debug.advancedLogging"); ! } ! catch ( Exception prop_xcp ) ! { ! advancedLogging = "false"; ! } ! ! if ( advancedLogging.equalsIgnoreCase("false") || ! getLogger() == null ) ! { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); ! } ! else ! { ! getLogger().debug(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); ! } } } *************** *** 185,190 **** if ( debug_level_ >= level ) { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(debug_print_stream_); } } --- 206,230 ---- if ( debug_level_ >= level ) { ! String advancedLogging; ! try ! { ! advancedLogging = RTKBase.getRTKProperties().getProperty("rtk.debug.advancedLogging"); ! } ! catch ( Exception prop_xcp ) ! { ! advancedLogging = "false"; ! } ! ! if ( advancedLogging.equalsIgnoreCase("false") || ! getLogger() == null ) ! { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(debug_print_stream_); ! } ! else ! { ! getLogger().error(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! getLogger().error(xcp); ! } } } *************** *** 231,233 **** --- 271,296 ---- } + private synchronized static Logger getLogger() + { + if (logger_ == null) + { + synchronized(RTK_VERSION) + { + try + { + PropertyConfigurator.configure(getRTKProperties()); + + logger_ = Logger.getRootLogger(); + } + catch(Exception xcp) + { + System.err.println("LOGGER: disabled using stderr"); + //xcp.printStackTrace(); + } + } + } + + return logger_; + } + } |
From: Daniel M. <tub...@us...> - 2003-03-24 21:18:37
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0503/rtk In directory sc8-pr-cvs1:/tmp/cvs-serv11196/src/com/tucows/oxrs/epp0503/rtk Modified Files: RTKBase.java Log Message: updates to the RTKBase class in all EPP versions to use log4j for logging and added config for it in rtk.properties. upgraded ant jar to 1.5.2 because javadoc was failing (update license as well) added log4j jar and licence : Modified Files: : LICENSE.ANT build.bat build.sh build.xml run_example.bat : run_example.sh etc/rtk.properties lib/ant.jar : src/com/tucows/oxrs/epp02/rtk/RTKBase.java : src/com/tucows/oxrs/epp0402/rtk/RTKBase.java : src/com/tucows/oxrs/epp0503/rtk/RTKBase.java : src/com/tucows/oxrs/epp0604/rtk/RTKBase.java : src/com/tucows/oxrs/epp0705/rtk/RTKBase.java : Added Files: : LICENSE.LOG4J lib/log4j.jar Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0503/rtk/RTKBase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RTKBase.java 21 Mar 2003 16:18:21 -0000 1.1 --- RTKBase.java 24 Mar 2003 21:18:02 -0000 1.2 *************** *** 33,36 **** --- 33,37 ---- import java.util.*; import java.io.*; + import org.apache.log4j.*; /** *************** *** 82,85 **** --- 83,88 ---- private static Properties rtk_properties_ = null; + private static Logger logger_ = null; + /** * DateFormat for "yyyy-MM-dd'T'hh:mm:ss.S'Z'". *************** *** 116,120 **** try { ! String rtk_debuglevel_str = (String) RTKBase.getRTKProperties().getProperty("rtk.debuglevel"); rtk_debuglevel = Integer.parseInt(rtk_debuglevel_str); } --- 119,123 ---- try { ! String rtk_debuglevel_str = (String) RTKBase.getRTKProperties().getProperty("rtk.debug.level"); rtk_debuglevel = Integer.parseInt(rtk_debuglevel_str); } *************** *** 123,127 **** // Couldn't parse the debuglevel setting -- maybe it wasn't an integer // Anyhoo -- we'll just use the default of level 1. ! System.err.println("couldn't parse the rtk.debuglevel ... maybe it wasn't a number"); } --- 126,130 ---- // Couldn't parse the debuglevel setting -- maybe it wasn't an integer // Anyhoo -- we'll just use the default of level 1. ! System.err.println("couldn't parse the rtk.debug.level property ... maybe it wasn't a number"); } *************** *** 165,169 **** if ( debug_level_ >= level ) { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); } } --- 168,190 ---- if ( debug_level_ >= level ) { ! String advancedLogging; ! try ! { ! advancedLogging = RTKBase.getRTKProperties().getProperty("rtk.debug.advancedLogging"); ! } ! catch ( Exception prop_xcp ) ! { ! advancedLogging = "false"; ! } ! ! if ( advancedLogging.equalsIgnoreCase("false") || ! getLogger() == null ) ! { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); ! } ! else ! { ! getLogger().debug(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); ! } } } *************** *** 185,190 **** if ( debug_level_ >= level ) { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(debug_print_stream_); } } --- 206,230 ---- if ( debug_level_ >= level ) { ! String advancedLogging; ! try ! { ! advancedLogging = RTKBase.getRTKProperties().getProperty("rtk.debug.advancedLogging"); ! } ! catch ( Exception prop_xcp ) ! { ! advancedLogging = "false"; ! } ! ! if ( advancedLogging.equalsIgnoreCase("false") || ! getLogger() == null ) ! { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(debug_print_stream_); ! } ! else ! { ! getLogger().error(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! getLogger().error(xcp); ! } } } *************** *** 231,233 **** --- 271,296 ---- } + private synchronized static Logger getLogger() + { + if (logger_ == null) + { + synchronized(RTK_VERSION) + { + try + { + PropertyConfigurator.configure(getRTKProperties()); + + logger_ = Logger.getRootLogger(); + } + catch(Exception xcp) + { + System.err.println("LOGGER: disabled using stderr"); + //xcp.printStackTrace(); + } + } + } + + return logger_; + } + } |
From: Daniel M. <tub...@us...> - 2003-03-24 21:18:37
|
Update of /cvsroot/epp-rtk/epp-rtk/java In directory sc8-pr-cvs1:/tmp/cvs-serv11196 Modified Files: LICENSE.ANT build.bat build.sh build.xml run_example.bat run_example.sh Added Files: LICENSE.LOG4J Log Message: updates to the RTKBase class in all EPP versions to use log4j for logging and added config for it in rtk.properties. upgraded ant jar to 1.5.2 because javadoc was failing (update license as well) added log4j jar and licence : Modified Files: : LICENSE.ANT build.bat build.sh build.xml run_example.bat : run_example.sh etc/rtk.properties lib/ant.jar : src/com/tucows/oxrs/epp02/rtk/RTKBase.java : src/com/tucows/oxrs/epp0402/rtk/RTKBase.java : src/com/tucows/oxrs/epp0503/rtk/RTKBase.java : src/com/tucows/oxrs/epp0604/rtk/RTKBase.java : src/com/tucows/oxrs/epp0705/rtk/RTKBase.java : Added Files: : LICENSE.LOG4J lib/log4j.jar --- NEW FILE: LICENSE.LOG4J --- /* * ============================================================================ * The Apache Software License, Version 1.1 * ============================================================================ * * Copyright (C) 1999 The Apache Software Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. The end-user documentation included with the redistribution, if any, must * include the following acknowledgment: "This product includes software * developed by the Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, if * and wherever such third-party acknowledgments normally appear. * * 4. The names "log4j" and "Apache Software Foundation" must not be used to * endorse or promote products derived from this software without prior * written permission. For written permission, please contact * ap...@ap.... * * 5. Products derived from this software may not be called "Apache", nor may * "Apache" appear in their name, without prior written permission of the * Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * This software consists of voluntary contributions made by many individuals * on behalf of the Apache Software Foundation. For more information on the * Apache Software Foundation, please see <http://www.apache.org/>. * */ Index: LICENSE.ANT =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/LICENSE.ANT,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** LICENSE.ANT 7 May 2001 01:02:55 -0000 1.1 --- LICENSE.ANT 24 Mar 2003 21:17:55 -0000 1.2 *************** *** 4,8 **** * ============================================================================ * ! * Copyright (C) 1999 The Apache Software Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without modifica- --- 4,9 ---- * ============================================================================ * ! * Copyright (C) 2000-2003 The Apache Software Foundation. All ! * rights reserved. * * Redistribution and use in source and binary forms, with or without modifica- Index: build.bat =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/build.bat,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** build.bat 27 Jun 2001 16:12:26 -0000 1.4 --- build.bat 24 Mar 2003 21:17:56 -0000 1.5 *************** *** 19,22 **** --- 19,25 ---- rem [.\lib] rem + rem LOG4J_HOME Distribution directory for the Log4j logging provider + rem [.\lib] + rem rem $Id$ rem --------------------------------------------------------------------------- *************** *** 27,34 **** set _ANT_JAR=%ANT_HOME% set _ANT_OPTS=%ANT_OPTS% ! set _CATALINA_HOME=%CATALINA_HOME% ! set _SERVLETAPI_HOME=%SERVLETAPI_HOME% ! set _TOMCAT_HOME=%TOMCAT_HOME% set _XERCES_HOME=%XERCES_HOME% --- 30,36 ---- set _ANT_JAR=%ANT_HOME% set _ANT_OPTS=%ANT_OPTS% ! set _REGEXP_HOME=%REGEXP_HOME% set _XERCES_HOME=%XERCES_HOME% + set _LOG4J_HOME=%LOG4J_HOME% *************** *** 52,65 **** :gotXercesHome ! rem Jarred classes of the IDLs that define a common EPP RTK interface ! set IDL_JARS=.\lib\epp_idl.jar;.\lib\epp_domain_idl.jar;.\lib\epp_host_idl.jar;.\lib\epp_contact_idl.jar rem ----- Set Up The Runtime Classpath ---------------------------------------- if "%CLASSPATH%" == "" goto noClasspath ! set CP=%ANT_JAR%\ant.jar;%REGEXP_JAR%\regexp.jar;%XERCES_HOME%\xerces.jar;%IDL_JARS%;%JAVA_HOME%\lib\tools.jar;%CLASSPATH% goto gotClasspath :noClasspath ! set CP=%ANT_JAR%\ant.jar;%REGEXP_JAR%\regexp.jar;%XERCES_HOME%\xerces.jar;%IDL_JARS%;%JAVA_HOME%\lib\tools.jar; :gotClasspath --- 54,68 ---- :gotXercesHome ! if not "%LOG4J_HOME%" == "" goto gotLog4jHome ! set LOG4J_HOME=.\lib ! :gotLog4jHome rem ----- Set Up The Runtime Classpath ---------------------------------------- if "%CLASSPATH%" == "" goto noClasspath ! set CP=%ANT_JAR%\ant.jar;%REGEXP_JAR%\regexp.jar;%XERCES_HOME%\xerces.jar;%LOG4J_HOME%\log4j.jar;%JAVA_HOME%\lib\tools.jar;%CLASSPATH% goto gotClasspath :noClasspath ! set CP=%ANT_JAR%\ant.jar;%REGEXP_JAR%\regexp.jar;%XERCES_HOME%\xerces.jar;%LOG4J_HOME%\log4j.jar;%JAVA_HOME%\lib\tools.jar; :gotClasspath *************** *** 78,81 **** --- 81,85 ---- set ANT_OPTS=%_ANT_OPTS% set XERCES_HOME=%_XERCES_HOME% + set LOG4J_HOME=%_LOG4J_HOME% set _ANT_JAR= *************** *** 83,85 **** --- 87,90 ---- set _ANT_OPTS= set _XERCES_HOME= + set _LOG4J_HOME= Index: build.sh =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/build.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** build.sh 27 Jun 2001 16:12:26 -0000 1.3 --- build.sh 24 Mar 2003 21:17:56 -0000 1.4 *************** *** 19,22 **** --- 19,25 ---- # [./lib] # + # LOG4J_HOME Location of the Log4j jar file. + # [./lib] + # # $Id$ # ----------------------------------------------------------------------------- *************** *** 47,56 **** fi # ----- Set Up The Runtime Classpath ------------------------------------------ if [ "$CLASSPATH" = "" ] ; then ! CP=$ANT_JAR/ant.jar:$REGEXP_JAR/regexp.jar:$XERCES_HOME/xerces.jar:$IDL_JARS:$JAVA_HOME/lib/tools.jar else ! CP=$ANT_JAR/ant.jar:$REGEXP_JAR/regexp.jar:$XERCES_HOME/xerces.jar:$IDL_JARS:$JAVA_HOME/lib/tools.jar:$CLASSPATH fi --- 50,63 ---- fi + if [ "$LOG4J_HOME" = "" ] ; then + LOG4J_HOME=./lib + fi + # ----- Set Up The Runtime Classpath ------------------------------------------ if [ "$CLASSPATH" = "" ] ; then ! CP=$ANT_JAR/ant.jar:$REGEXP_JAR/regexp.jar:$XERCES_HOME/xerces.jar:$LOG4J_HOME/log4j.jar:$JAVA_HOME/lib/tools.jar else ! CP=$ANT_JAR/ant.jar:$REGEXP_JAR/regexp.jar:$XERCES_HOME/xerces.jar:$LOG4J_HOME/log4j.jar:$JAVA_HOME/lib/tools.jar:$CLASSPATH fi Index: build.xml =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/build.xml,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** build.xml 24 Mar 2003 15:39:52 -0000 1.18 --- build.xml 24 Mar 2003 21:17:56 -0000 1.19 *************** *** 45,49 **** destdir="${build.home}/doc" classpath="${java.class.path}" ! packagenames="com.tucows.oxrs.epp.rtk.*,org.openrtk.idl.epp.*" author="true" private="false" --- 45,49 ---- destdir="${build.home}/doc" classpath="${java.class.path}" ! packagenames="com.tucows.oxrs.*,org.openrtk.idl.*" author="true" private="false" *************** *** 52,56 **** doctitle="<h1>EPP Registrar Toolkit for Java (Version ${project.version})</h1>" header="EPP RTK<br>for Java v ${project.version}" ! bottom="<font size=-1>Copyright © 2001 - Tucows, Inc.</font>"/> </target> --- 52,56 ---- doctitle="<h1>EPP Registrar Toolkit for Java (Version ${project.version})</h1>" header="EPP RTK<br>for Java v ${project.version}" ! bottom="<font size=-1>Copyright © 2001-2002 - Tucows, Inc., 2003 - LibertyRMS</font>"/> </target> Index: run_example.bat =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/run_example.bat,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** run_example.bat 20 Mar 2003 22:47:38 -0000 1.7 --- run_example.bat 24 Mar 2003 21:17:56 -0000 1.8 *************** *** 18,22 **** rem ----- Verify and Set Required Environment Variables ----------------------- ! set USAGE="usage: %0 SessionExample|ContactExample|DomainExample|HostExample epp_host_name epp_host_port epp_client_id epp_password domain_name [registrant_contact_id] [tech_contact_id]" if not "%JAVA_HOME%" == "" goto gotJavaHome --- 18,22 ---- rem ----- Verify and Set Required Environment Variables ----------------------- ! set USAGE="usage: %0 0705|0604|0503|0402|02 SessionExample|ContactExample|DomainExample|HostExample epp_host_name epp_host_port epp_client_id epp_password domain_name [registrant_contact_id] [tech_contact_id]" if not "%JAVA_HOME%" == "" goto gotJavaHome *************** *** 48,55 **** if "%CLASSPATH%" == "" goto noClasspath ! set CP=%RTK_HOME%\java\lib\xerces.jar;%RTK_HOME%\java\lib\regexp.jar;%RTK_HOME%\java\lib\epp-rtk-java.jar;%CLASSPATH% goto gotClasspath :noClasspath ! set CP=%RTK_HOME%\java\lib\xerces.jar;%RTK_HOME%\java\lib\regexp.jar;%RTK_HOME%\java\lib\epp-rtk-java.jar; :gotClasspath --- 48,55 ---- if "%CLASSPATH%" == "" goto noClasspath ! set CP=%RTK_HOME%\java\lib\xerces.jar;%RTK_HOME%\java\lib\regexp.jar;%RTK_HOME%\java\lib\log4j.jar;%RTK_HOME%\java\lib\epp-rtk-java.jar;%CLASSPATH% goto gotClasspath :noClasspath ! set CP=%RTK_HOME%\java\lib\xerces.jar;%RTK_HOME%\java\lib\regexp.jar;%RTK_HOME%\java\lib\log4j.jar;%RTK_HOME%\java\lib\epp-rtk-java.jar; :gotClasspath Index: run_example.sh =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/run_example.sh,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** run_example.sh 20 Mar 2003 22:47:38 -0000 1.7 --- run_example.sh 24 Mar 2003 21:17:56 -0000 1.8 *************** *** 30,34 **** java -Dssl.props.location=$RTK_HOME/java/ssl \ -Drtk.props.file=$RTK_HOME/java/etc/rtk.properties \ ! -cp $RTK_HOME/java/lib/xerces.jar:$RTK_HOME/java/lib/epp-rtk-java.jar:$RTK_HOME/java/lib/regexp.jar \ com.tucows.oxrs.epp$EPP_VERSION.rtk.example.$EXAMPLE_CLASS \ $EPP_HOST $EPP_PORT $CLIENT_ID $PASSWORD \ --- 30,34 ---- java -Dssl.props.location=$RTK_HOME/java/ssl \ -Drtk.props.file=$RTK_HOME/java/etc/rtk.properties \ ! -cp $RTK_HOME/java/lib/xerces.jar:$RTK_HOME/java/lib/epp-rtk-java.jar:$RTK_HOME/java/lib/regexp.jar:$RTK_HOME/java/lib/log4j.jar \ com.tucows.oxrs.epp$EPP_VERSION.rtk.example.$EXAMPLE_CLASS \ $EPP_HOST $EPP_PORT $CLIENT_ID $PASSWORD \ |
From: Daniel M. <tub...@us...> - 2003-03-24 21:18:37
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk In directory sc8-pr-cvs1:/tmp/cvs-serv11196/src/com/tucows/oxrs/epp02/rtk Modified Files: RTKBase.java Log Message: updates to the RTKBase class in all EPP versions to use log4j for logging and added config for it in rtk.properties. upgraded ant jar to 1.5.2 because javadoc was failing (update license as well) added log4j jar and licence : Modified Files: : LICENSE.ANT build.bat build.sh build.xml run_example.bat : run_example.sh etc/rtk.properties lib/ant.jar : src/com/tucows/oxrs/epp02/rtk/RTKBase.java : src/com/tucows/oxrs/epp0402/rtk/RTKBase.java : src/com/tucows/oxrs/epp0503/rtk/RTKBase.java : src/com/tucows/oxrs/epp0604/rtk/RTKBase.java : src/com/tucows/oxrs/epp0705/rtk/RTKBase.java : Added Files: : LICENSE.LOG4J lib/log4j.jar Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/RTKBase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RTKBase.java 21 Mar 2003 17:13:40 -0000 1.1 --- RTKBase.java 24 Mar 2003 21:18:00 -0000 1.2 *************** *** 32,35 **** --- 32,36 ---- import java.util.*; import java.io.*; + import org.apache.log4j.*; /** *************** *** 79,82 **** --- 80,85 ---- private static Properties rtk_properties_ = null; + private static Logger logger_ = null; + /** * DateFormat for "yyyy-MM-dd'T'hh:mm:ss.0'Z'". *************** *** 122,126 **** if ( debug_level_ >= level ) { ! System.err.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); } } --- 125,147 ---- if ( debug_level_ >= level ) { ! String advancedLogging; ! try ! { ! advancedLogging = RTKBase.getRTKProperties().getProperty("rtk.debug.advancedLogging"); ! } ! catch ( Exception prop_xcp ) ! { ! advancedLogging = "false"; ! } ! ! if ( advancedLogging.equalsIgnoreCase("false") || ! getLogger() == null ) ! { ! System.err.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); ! } ! else ! { ! getLogger().debug(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); ! } } } *************** *** 142,147 **** if ( debug_level_ >= level ) { ! System.err.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(); } } --- 163,187 ---- if ( debug_level_ >= level ) { ! String advancedLogging; ! try ! { ! advancedLogging = RTKBase.getRTKProperties().getProperty("rtk.debug.advancedLogging"); ! } ! catch ( Exception prop_xcp ) ! { ! advancedLogging = "false"; ! } ! ! if ( advancedLogging.equalsIgnoreCase("false") || ! getLogger() == null ) ! { ! System.err.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(System.err); ! } ! else ! { ! getLogger().error(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! getLogger().error(xcp); ! } } } *************** *** 185,187 **** --- 225,250 ---- } + private synchronized static Logger getLogger() + { + if (logger_ == null) + { + synchronized(RTK_VERSION) + { + try + { + PropertyConfigurator.configure(getRTKProperties()); + + logger_ = Logger.getRootLogger(); + } + catch(Exception xcp) + { + System.err.println("LOGGER: disabled using stderr"); + //xcp.printStackTrace(); + } + } + } + + return logger_; + } + } |
From: Daniel M. <tub...@us...> - 2003-03-24 21:18:35
|
Update of /cvsroot/epp-rtk/epp-rtk/java/etc In directory sc8-pr-cvs1:/tmp/cvs-serv11196/etc Modified Files: rtk.properties Log Message: updates to the RTKBase class in all EPP versions to use log4j for logging and added config for it in rtk.properties. upgraded ant jar to 1.5.2 because javadoc was failing (update license as well) added log4j jar and licence : Modified Files: : LICENSE.ANT build.bat build.sh build.xml run_example.bat : run_example.sh etc/rtk.properties lib/ant.jar : src/com/tucows/oxrs/epp02/rtk/RTKBase.java : src/com/tucows/oxrs/epp0402/rtk/RTKBase.java : src/com/tucows/oxrs/epp0503/rtk/RTKBase.java : src/com/tucows/oxrs/epp0604/rtk/RTKBase.java : src/com/tucows/oxrs/epp0705/rtk/RTKBase.java : Added Files: : LICENSE.LOG4J lib/log4j.jar Index: rtk.properties =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/etc/rtk.properties,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** rtk.properties 15 Mar 2002 02:31:53 -0000 1.5 --- rtk.properties 24 Mar 2003 21:17:56 -0000 1.6 *************** *** 25,29 **** # most method calls. # Default value is 1. ! rtk.debuglevel=1 # Using EPPClient's login method has the possibility of --- 25,50 ---- # most method calls. # Default value is 1. ! rtk.debug.level=1 ! ! # Using advanced loggin means to use the RTK's advanced logging ! # facility (provided by log4j). Settings for advanced logging ! # appear below. ! rtk.debug.advancedLogging=true ! ! # These are the settings for advanced logging using log4j ! # For those new to log4j, the more changeable properties ! # are "log4j.appender.A2.File", "log4j.appender.A2.MaxFileSize" ! # and "log4j.appender.A2.MaxBackupIndex". ! log4j.rootCategory=DEBUG,A2 ! log4j.appender.A2=org.apache.log4j.RollingFileAppender ! log4j.appender.A2.File=/tmp/epp-rtk-debug.log ! log4j.appender.A2.Append=true ! log4j.appender.A2.MaxFileSize=5MB ! log4j.appender.A2.MaxBackupIndex=4 ! log4j.appender.A2.layout=org.apache.log4j.TTCCLayout ! log4j.appender.A2.layout.ContextPrinting=true ! log4j.appender.A2.layout.DateFormat=ISO8601 ! log4j.appender.A2.layout.TimeZone=GMT ! # Using EPPClient's login method has the possibility of *************** *** 32,33 **** --- 53,55 ---- # you wish to send the RTK's version to the server. rtk.login.sendversion=false + |
From: Daniel M. <tub...@us...> - 2003-03-24 21:18:13
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk In directory sc8-pr-cvs1:/tmp/cvs-serv11196/src/com/tucows/oxrs/epp0705/rtk Modified Files: RTKBase.java Log Message: updates to the RTKBase class in all EPP versions to use log4j for logging and added config for it in rtk.properties. upgraded ant jar to 1.5.2 because javadoc was failing (update license as well) added log4j jar and licence : Modified Files: : LICENSE.ANT build.bat build.sh build.xml run_example.bat : run_example.sh etc/rtk.properties lib/ant.jar : src/com/tucows/oxrs/epp02/rtk/RTKBase.java : src/com/tucows/oxrs/epp0402/rtk/RTKBase.java : src/com/tucows/oxrs/epp0503/rtk/RTKBase.java : src/com/tucows/oxrs/epp0604/rtk/RTKBase.java : src/com/tucows/oxrs/epp0705/rtk/RTKBase.java : Added Files: : LICENSE.LOG4J lib/log4j.jar Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/RTKBase.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RTKBase.java 24 Mar 2003 15:39:07 -0000 1.2 --- RTKBase.java 24 Mar 2003 21:18:04 -0000 1.3 *************** *** 34,37 **** --- 34,38 ---- import java.util.*; import java.io.*; + import org.apache.log4j.*; /** *************** *** 83,86 **** --- 84,89 ---- private static Properties rtk_properties_ = null; + private static Logger logger_ = null; + /** * DateFormat for "yyyy-MM-dd'T'hh:mm:ss.S'Z'". *************** *** 117,121 **** try { ! String rtk_debuglevel_str = (String) RTKBase.getRTKProperties().getProperty("rtk.debuglevel"); rtk_debuglevel = Integer.parseInt(rtk_debuglevel_str); } --- 120,124 ---- try { ! String rtk_debuglevel_str = (String) RTKBase.getRTKProperties().getProperty("rtk.debug.level"); rtk_debuglevel = Integer.parseInt(rtk_debuglevel_str); } *************** *** 124,128 **** // Couldn't parse the debuglevel setting -- maybe it wasn't an integer // Anyhoo -- we'll just use the default of level 1. ! System.err.println("couldn't parse the rtk.debuglevel ... maybe it wasn't a number"); } --- 127,131 ---- // Couldn't parse the debuglevel setting -- maybe it wasn't an integer // Anyhoo -- we'll just use the default of level 1. ! System.err.println("couldn't parse the rtk.debug.level property ... maybe it wasn't a number"); } *************** *** 166,170 **** if ( debug_level_ >= level ) { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); } } --- 169,191 ---- if ( debug_level_ >= level ) { ! String advancedLogging; ! try ! { ! advancedLogging = RTKBase.getRTKProperties().getProperty("rtk.debug.advancedLogging"); ! } ! catch ( Exception prop_xcp ) ! { ! advancedLogging = "false"; ! } ! ! if ( advancedLogging.equalsIgnoreCase("false") || ! getLogger() == null ) ! { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); ! } ! else ! { ! getLogger().debug(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : "+message); ! } } } *************** *** 186,191 **** if ( debug_level_ >= level ) { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(debug_print_stream_); } } --- 207,231 ---- if ( debug_level_ >= level ) { ! String advancedLogging; ! try ! { ! advancedLogging = RTKBase.getRTKProperties().getProperty("rtk.debug.advancedLogging"); ! } ! catch ( Exception prop_xcp ) ! { ! advancedLogging = "false"; ! } ! ! if ( advancedLogging.equalsIgnoreCase("false") || ! getLogger() == null ) ! { ! debug_print_stream_.println(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! xcp.printStackTrace(debug_print_stream_); ! } ! else ! { ! getLogger().error(getClass().getName()+"."+method_name+" {"+new Date()+"}["+level+"] : ["+xcp.getClass().getName()+"] ["+xcp.getMessage()+"]"); ! getLogger().error(xcp); ! } } } *************** *** 231,234 **** --- 271,298 ---- return rtk_properties_; } + + private synchronized static Logger getLogger() + { + if (logger_ == null) + { + synchronized(RTK_VERSION) + { + try + { + PropertyConfigurator.configure(getRTKProperties()); + + logger_ = Logger.getRootLogger(); + } + catch(Exception xcp) + { + System.err.println("LOGGER: disabled using stderr"); + //xcp.printStackTrace(); + } + } + } + + return logger_; + } + } |
From: Daniel M. <tub...@us...> - 2003-03-24 19:47:07
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0705 In directory sc8-pr-cvs1:/tmp/cvs-serv25459/epp0705 Modified Files: epp_Session.java Log Message: put pre-0705 names of response code constants back for backward compatibility Index: epp_Session.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp0705/epp_Session.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_Session.java 20 Mar 2003 22:42:19 -0000 1.1 --- epp_Session.java 24 Mar 2003 19:47:00 -0000 1.2 *************** *** 40,43 **** --- 40,49 ---- public static final short EPP_COMMAND_COMPLETED_SUCCESSFULLY_ACTION_PENDING = (short)(1001); public static final short EPP_COMMAND_COMPLETED_SUCCESSFULLY_NO_MESSAGES = (short)(1300); + /** + * Same short value as EPP_COMMAND_COMPLETED_SUCCESSFULLY_ACK_TO_DEQUEUE, but + * provided for backward compatibility. + * @deprecated + */ + public static final short EPP_COMMAND_COMPLETED_SUCCESSFULLY_MESSAGE_PRESENT = (short)(1301); public static final short EPP_COMMAND_COMPLETED_SUCCESSFULLY_ACK_TO_DEQUEUE = (short)(1301); public static final short EPP_COMMAND_COMPLETED_SUCCESSFULLY_ENDING_SESSION = (short)(1500); *************** *** 68,72 **** --- 74,90 ---- public static final short EPP_DATA_MANAGEMENT_POLICY_VIOLATION = (short)(2308); public static final short EPP_COMMAND_FAILED = (short)(2400); + /** + * Same short value as EPP_COMMAND_FAILED_SERVER_CLOSING_CONNECTION, but + * provided for backward compatibility. + * @deprecated + */ + public static final short EPP_COMMAND_FAILED_SERVER_ENDING_SESSION = (short)(2500); public static final short EPP_COMMAND_FAILED_SERVER_CLOSING_CONNECTION = (short)(2500); + /** + * Same short value as EPP_AUTHENTICATION_ERROR_SERVER_CLOSING_CONNECTION, but + * provided for backward compatibility. + * @deprecated + */ + public static final short EPP_TIMEOUT_SERVER_ENDING_SESSION = (short)(2501); public static final short EPP_AUTHENTICATION_ERROR_SERVER_CLOSING_CONNECTION = (short)(2501); public static final short EPP_SESSION_LIMIT_EXCEEDED_SERVER_CLOSING_CONNECTION = (short)(2502); |
From: Daniel M. <tub...@us...> - 2003-03-24 15:39:59
|
Update of /cvsroot/epp-rtk/epp-rtk/java In directory sc8-pr-cvs1:/tmp/cvs-serv20817 Modified Files: build.xml VERSION.TXT Log Message: upped version number in build.xml and added release notes to VERSION.TXT Index: build.xml =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/build.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** build.xml 13 Mar 2002 02:22:13 -0000 1.17 --- build.xml 24 Mar 2003 15:39:52 -0000 1.18 *************** *** 5,13 **** <property name="build.home" value="build"/> <property name="debug" value="true"/> ! <property name="deprecation" value="true"/> <property name="dist.home" value="dist"/> <property name="optimize" value="true"/> <property name="project.name" value="epp-rtk-java"/> ! <property name="project.version" value="0.5.0"/> <!-- property name="build.compiler" value="jikes"/ --> <!-- property name="build.compiler" value="classic"/ --> --- 5,13 ---- <property name="build.home" value="build"/> <property name="debug" value="true"/> ! <property name="deprecation" value="false"/> <property name="dist.home" value="dist"/> <property name="optimize" value="true"/> <property name="project.name" value="epp-rtk-java"/> ! <property name="project.version" value="0.7.0"/> <!-- property name="build.compiler" value="jikes"/ --> <!-- property name="build.compiler" value="classic"/ --> Index: VERSION.TXT =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/VERSION.TXT,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** VERSION.TXT 20 Mar 2002 17:00:38 -0000 1.19 --- VERSION.TXT 24 Mar 2003 15:39:53 -0000 1.20 *************** *** 7,10 **** --- 7,39 ---- ====================== + epp-rtk-java-0.7.0 - March 24, 2003 + + + Initial Java RTK release for EPP 07/05 + + Removed the EPP status command. + + AuthInfo now has EXT type, in addition + to PW. + + Removed "ResultData" from EPP response. + + Created new epp_ExtResultValue IDL class. + + Removed credentials class and moved its + data members to the Login request. (EPP + no longer supports sessionless interactions). + + Added new 1001 response code -- command + completed successfully. + + Changed constant naming of the 1301, and 2500. + + Changed meaning of 2501 reponse code. + (Backward compatibility of response codes is provided) + + Added pending action notification classes + (domainpanData, contactpanData and hostpanData) + to the xml/poll class package. + + Renamed source packages from com.tucows.oxrs.epp.* + to com.tucows.oxrs.epp0705.* + + Imported in source from EPP 06/04, 05/03, 04/02, + and "pre" 02 into current source tree. + + Updated run_example.(sh|bat) to accept an EPP + version number to run example code. See usage + for run_example for format. + + Updates to the SSL code for compilation with + Java SDK 1.4. + epp-rtk-java-0.5.0 - March 20, 2002 |
From: Daniel M. <tub...@us...> - 2003-03-24 15:39:14
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk In directory sc8-pr-cvs1:/tmp/cvs-serv19572 Modified Files: RTKBase.java Log Message: changed the version number to 0.7.0. this *is* the version number of the epp0705 code in this directory of the CVS Tree Index: RTKBase.java =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp0705/rtk/RTKBase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RTKBase.java 20 Mar 2003 22:41:59 -0000 1.1 --- RTKBase.java 24 Mar 2003 15:39:07 -0000 1.2 *************** *** 51,55 **** * RTK Version number. */ ! public static final String RTK_VERSION = "1.0.1"; /** --- 51,55 ---- * RTK Version number. */ ! public static final String RTK_VERSION = "0.7.0"; /** |
From: Daniel M. <tub...@us...> - 2003-03-21 17:28:13
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02 In directory sc8-pr-cvs1:/tmp/cvs-serv30289/epp02 Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02 added to the repository |
From: Daniel M. <tub...@us...> - 2003-03-21 17:20:50
|
Update of /cvsroot/epp-rtk/epp-rtk/java/doc/02 In directory sc8-pr-cvs1:/tmp/cvs-serv1188/02 Added Files: epp-rtk-user-guide.html Log Message: pulled in epp 02 RTK users guide --- NEW FILE: epp-rtk-user-guide.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1"> <TITLE>EPP RTK Java API Documentation</TITLE> </HEAD> <BODY text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#55188A" alink="#FF0000"> <H1><font size=10><center>EPP RTK for Java<BR> User Guide</center></font></H1> <h3><center>Version 0.3.8</center></h3> <h3><center>July 27, 2001</center></h3> <h2><center>Created by: Tucows Inc.</center></h2> [...4561 lines suppressed...] <P> 2. You may modify your copy or copies of the OpenContent or any portion of it, thus forming works based on the Content, and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: <blockquote> a) You must cause the modified content to carry prominent notices stating that you changed it, the exact nature and content of the changes, and the date of any change. <P> b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the OC or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License, unless otherwise permitted under applicable Fair Use law. </blockquote> These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the OC, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the OC, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Exceptions are made to this requirement to release modified works free of charge under this license only in compliance with Fair Use law where applicable. <P> 3. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to copy, distribute or modify the OC. These actions are prohibited by law if you do not accept this License. Therefore, by distributing or translating the OC, or by deriving works herefrom, you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or translating the OC. <P> NO WARRANTY <P> 4. BECAUSE THE OPENCONTENT (OC) IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE OC, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE OC "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK OF USE OF THE OC IS WITH YOU. SHOULD THE OC PROVE FAULTY, INACCURATE, OR OTHERWISE UNACCEPTABLE YOU ASSUME THE COST OF ALL NECESSARY REPAIR OR CORRECTION. <P> 5. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MIRROR AND/OR REDISTRIBUTE THE OC AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE OC, EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. </blockquote> </BODY> </HTML> |
From: Daniel M. <tub...@us...> - 2003-03-21 17:15:47
|
Update of /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/xml/poll In directory sc8-pr-cvs1:/tmp/cvs-serv31010/poll Log Message: Directory /cvsroot/epp-rtk/epp-rtk/java/src/com/tucows/oxrs/epp02/rtk/xml/poll added to the repository |