1 /////////////////////////////////////////////////////////////////////// 2 // 3 // (c) University of Southampton IT Innovation Centre, 2008 4 // 5 // Copyright in this software belongs to the IT Innovation Centre of 6 // 2 Venture Road, Chilworth Science Park, Southampton SO16 7NP, UK. 7 // 8 // This software may not be used, sold, licensed, transferred, copied 9 // or reproduced in whole or in part in any manner or form or in or 10 // on any media by any person other than in accordance with the terms 11 // of the Licence Agreement supplied with the software, or otherwise 12 // without the prior written consent of the copyright owners. 13 // 14 // This software is distributed WITHOUT ANY WARRANTY, without even the 15 // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 16 // PURPOSE, except where stated in the Licence Agreement supplied with 17 // the software. 18 // 19 // Created By : Nikolaos Matskanis 20 // Created Date : 14/02/2008 21 // Created for Project : NextGRID 22 // 23 ///////////////////////////////////////////////////////////////////////// 24 // 25 // Dependencies : none 26 // 27 ///////////////////////////////////////////////////////////////////////// 28 29 package uk.ac.soton.itinnovation.components.security; 30 31 import java.util.ResourceBundle; 32 33 /** 34 * 35 * @author Nikolaos Matskanis 36 */ 37 public class SignOnModule { 38 39 static { 40 ResourceBundle bundle = ResourceBundle.getBundle("crypto"); 41 String keystore = bundle.getString("org.apache.ws.security.crypto.merlin.file"); 42 System.setProperty("javax.net.ssl.keyStore", keystore); 43 System.setProperty("javax.net.ssl.trustStore", keystore); 44 String passwd 45 = bundle.getString("org.apache.ws.security.crypto.merlin.keystore.password"); 46 System.setProperty("javax.net.ssl.keyStorePassword", passwd); 47 System.setProperty("javax.net.ssl.trustStorePassword", passwd); 48 } 49 50 }