Changeset 466

Show
Ignore:
Timestamp:
01/10/08 10:30:37 (11 months ago)
Author:
paulhethmon
Message:

Update test code to latest library release.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • MetaTest/trunk/nbproject/genfiles.properties

    r234 r466  
    1 build.xml.data.CRC32=bd939ee5 
     1build.xml.data.CRC32=0792b1fe 
    22build.xml.script.CRC32=f5c6403f 
    33build.xml.stylesheet.CRC32=240b97a2 
    44# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 
    55# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 
    6 nbproject/build-impl.xml.data.CRC32=bd939ee5 
    7 nbproject/build-impl.xml.script.CRC32=9ad3ec73 
     6nbproject/build-impl.xml.data.CRC32=0792b1fe 
     7nbproject/build-impl.xml.script.CRC32=e7d1320f 
    88nbproject/build-impl.xml.stylesheet.CRC32=20b9345e 
  • MetaTest/trunk/nbproject/project.properties

    r293 r466  
    1919jar.compress=false 
    2020javac.classpath=\ 
    21     ${libs.ApacheCommons.classpath}:\ 
    22     ${libs.Javolution.classpath}:\ 
    23     ${libs.Velocity.classpath}:\ 
    24     ${libs.OpenSAML-20070729-JDK1.5.classpath}:\ 
    25     ${reference.ClareitySecuritySSO.jar} 
     21    ${reference.ClareitySecuritySSO.jar}:\ 
     22    ${libs.OpenSAML-20080110-JDK1.5.classpath} 
    2623# Space-separated list of extra javac options 
    2724javac.compilerargs= 
     
    5047manifest.file=manifest.mf 
    5148meta.inf.dir=${src.dir}/META-INF 
    52 platform.active=Java_1.5_Endorsed 
     49platform.active=default_platform 
    5350reference.ClareitySecuritySSO.jar=${project.ClareitySecuritySSO}/dist/ClareitySecuritySSO.jar 
    5451run.classpath=\ 
  • MetaTest/trunk/nbproject/project.xml

    r234 r466  
    66            <name>MetaTest</name> 
    77            <minimum-ant-version>1.6.5</minimum-ant-version> 
    8             <explicit-platform explicit-source-supported="true"/> 
    98            <source-roots> 
    109                <root id="src.dir"/> 
  • MetaTest/trunk/src/metatest/Main.java

    r251 r466  
    7474//    if (1 == 1) return; 
    7575     
    76 //    String privateKeyFile = "c:\\Clareity\\Dev\\OpenSAML\\MetaTest\\src\\dev.acmeidp.com.key"; 
    77     String privateKeyFile = "c:\\Business\\Clareity\\Dev\\SAML\\MetaTest\\src\\dev.acmeidp.com.key"; 
     76    String privateKeyFile = "c:\\Clareity\\Dev\\OpenSAML\\MetaTest\\src\\dev.acmeidp.com.key"; 
     77//    String privateKeyFile = "c:\\Business\\Clareity\\Dev\\SAML\\MetaTest\\src\\dev.acmeidp.com.key"; 
    7878    String encodedPrivateKey = ""; 
    7979    String line; 
     
    9898     
    9999    // build the AuthnRequest 
    100     net.clareitysecurity.websso.sp.AbstractHttpHandler post = new net.clareitysecurity.websso.sp.AbstractHttpHandler(); 
     100    net.clareitysecurity.websso.sp.PostHandler post = new net.clareitysecurity.websso.sp.PostHandler(); 
    101101    post.setActionURL("xxx"); 
    102102    post.setAssertionConsumerServiceURL("yyy"); 
    103103    post.setIssuerName("test"); 
    104104    post.setProviderName("provider"); 
    105     AuthnRequest authnRequest = post.getAuthnRequest(); 
     105    AuthnRequest authnRequest = post.buildAuthnRequest(); 
    106106    System.out.println("Built AuthnRequest object ..."); 
    107107     
     
    128128    System.out.println(responseXML); 
    129129    System.out.println("----- Signed XML -----"); 
    130        
     130/*       
    131131    // ---------- 
    132132    // This section to obtain metadata and pull out the RSA public key to verify signatures 
     
    231231 
    232232    System.out.println("Signature is valid."); 
    233      
     233*/     
    234234  } 
    235235