Changeset 11


Ignore:
Timestamp:
06-08-09 18:41:20 (10 years ago)
Author:
matthijsln
Message:

nl.openwion.klic.ssl package hernoemd naar nl.openwion.klic.security

Location:
openwion-service/trunk
Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • openwion-service/trunk/src/java/nl/openwion/klic/BeheerdersInformatieSender.java

    r10 r11  
    1919import nl.kadaster.bmkl.ContactType; 
    2020import nl.kadaster.service.*; 
    21 import nl.openwion.klic.ssl.KlicSSLContextBuilder; 
     21import nl.openwion.klic.security.KlicSSLContextBuilder; 
    2222 
    2323public class BeheerdersInformatieSender extends HttpServlet { 
     
    6060        System.out.printf("Versturen informatie op %s...\n", df.format(informatie.getDatumTijdVerzending().getTime())); 
    6161        BMKLResponseType response = port.beheerdersInformatie(informatie); 
    62          
     62 
    6363        String result = String.format("Response: code=%s, relatienr=%s, ordernr=%s, klicnr=%s, datumtijd=%s\n", 
    6464                response.getResultaatCode(), response.getRelatienummer(), response.getOrdernummer(), 
    6565                response.getKlicnummer(), df.format(response.getDatumTijdVerzending().getTime())); 
    6666        System.out.println(result); 
    67          
     67 
    6868        req.setAttribute("result", result); 
    6969        sc.getServletContext().getRequestDispatcher("/result.jsp").forward(req, res); 
  • openwion-service/trunk/src/java/nl/openwion/klic/security/KlicSSLContextBuilder.java

    r9 r11  
    1 package nl.openwion.klic.ssl; 
     1package nl.openwion.klic.security; 
    22 
    33import java.security.KeyStore; 
     
    1818         * gebouwd en als eerste argument aan SSLContext.init() worden meegegeven. 
    1919         */ 
    20          
     20 
    2121        context.init(null, tms, null); 
    2222    } 
  • openwion-service/trunk/src/java/nl/openwion/klic/security/KlicSSLContextBuilderInitializerServlet.java

    r9 r11  
    1 package nl.openwion.klic.ssl; 
     1package nl.openwion.klic.security; 
    22 
    33import java.io.IOException; 
     
    1616public class KlicSSLContextBuilderInitializerServlet implements Servlet { 
    1717 
    18     private static final String PARAM_KEYSTORE_PATH = "keyStore";  
     18    private static final String PARAM_KEYSTORE_PATH = "keyStore"; 
    1919    private static final String PARAM_KEYSTORE_PASS = "keyStorePass"; 
    2020    private static final String PARAM_SUBJECT_DN_CHECKS = "subjectDistinguishedNameChecks"; 
     
    2424    public void init(ServletConfig config) throws ServletException { 
    2525        this.config = config; 
    26          
     26 
    2727        String keystore = config.getInitParameter(PARAM_KEYSTORE_PATH); 
    2828        if(keystore == null) { 
  • openwion-service/trunk/src/java/nl/openwion/klic/security/KlicX509TrustManager.java

    r9 r11  
    1 package nl.openwion.klic.ssl; 
     1package nl.openwion.klic.security; 
    22 
    33import java.security.KeyStore; 
     
    3838    KlicX509TrustManager(KeyStore ks, String[] subjectDNSearchStrings) throws Exception { 
    3939        this.subjectDNSearchStrings = subjectDNSearchStrings; 
    40          
     40 
    4141        TrustManagerFactory tmf = TrustManagerFactory.getInstance("PKIX"); 
    4242        tmf.init(ks); 
  • openwion-service/trunk/web/WEB-INF/web.xml

    r10 r11  
    1414    <servlet> 
    1515        <servlet-name>KlicSSLContextBuilderInitializerServlet</servlet-name> 
    16         <servlet-class>nl.openwion.klic.ssl.KlicSSLContextBuilderInitializerServlet</servlet-class> 
     16        <servlet-class>nl.openwion.klic.security.KlicSSLContextBuilderInitializerServlet</servlet-class> 
    1717        <load-on-startup>2</load-on-startup> 
    1818        <init-param> 
Note: See TracChangeset for help on using the changeset viewer.