1 package org.jacorb.security.ssl.iaik; 2 3 23 24 25 31 32 public class SSLSetup 33 { 34 private static final iaik.security.ssl.CipherSuite[] cs = { 36 iaik.security.ssl.CipherSuite.SSL_RSA_WITH_IDEA_CBC_SHA, 37 iaik.security.ssl.CipherSuite.SSL_RSA_WITH_3DES_EDE_CBC_SHA 38 }; 39 protected static final int[][] cipher_suite_props = { 40 {iaik.security.ssl.CipherSuite.SSL_RSA_WITH_IDEA_CBC_SHA.getID(), 0x66}, 41 {iaik.security.ssl.CipherSuite.SSL_RSA_WITH_3DES_EDE_CBC_SHA.getID(),0x66}}; 42 protected static final byte[] types = {iaik.security.ssl.ClientTrustDecider.rsa_sign 43 }; 45 46 49 50 public static iaik.security.ssl.CipherSuite[] getCipherSuites() 51 { 52 return cs; 53 } 54 55 public static boolean isSSL( java.net.Socket s ) 56 { 57 return ( s instanceof iaik.security.ssl.SSLSocket ); 58 } 59 60 public static String getMechanismType() 61 { 62 String sslMechType = "20," 63 + iaik.security.ssl.CipherSuite.SSL_RSA_WITH_IDEA_CBC_SHA.getID() 64 + "," 65 + iaik.security.ssl.CipherSuite.SSL_RSA_WITH_3DES_EDE_CBC_SHA.getID(); 66 return sslMechType; 67 } 68 69 } 70 71 72 73 | Popular Tags |