1 17 18 package org.apache.tomcat.util.net; 19 20 import java.io.IOException ; 21 22 28 29 public interface SSLSupport { 30 33 public static final String CIPHER_SUITE_KEY = "javax.servlet.request.cipher_suite"; 34 35 38 public static final String KEY_SIZE_KEY = "javax.servlet.request.key_size"; 39 40 43 public static final String CERTIFICATE_KEY = "javax.servlet.request.X509Certificate"; 44 45 49 public static final String SESSION_ID_KEY = "javax.servlet.request.ssl_session"; 50 51 56 static final CipherData ciphers[] = { 57 new CipherData("_WITH_NULL_", 0), 58 new CipherData("_WITH_IDEA_CBC_", 128), 59 new CipherData("_WITH_RC2_CBC_40_", 40), 60 new CipherData("_WITH_RC4_40_", 40), 61 new CipherData("_WITH_RC4_128_", 128), 62 new CipherData("_WITH_DES40_CBC_", 40), 63 new CipherData("_WITH_DES_CBC_", 56), 64 new CipherData("_WITH_3DES_EDE_CBC_", 168) 65 }; 66 67 70 public String getCipherSuite() throws IOException ; 71 72 75 public Object [] getPeerCertificateChain() 76 throws IOException ; 77 78 83 public Object [] getPeerCertificateChain(boolean force) 84 throws IOException ; 85 86 100 public Integer getKeySize() 101 throws IOException ; 102 103 106 public String getSessionId() 107 throws IOException ; 108 113 114 final class CipherData { 115 116 public String phrase = null; 117 118 public int keySize = 0; 119 120 public CipherData(String phrase, int keySize) { 121 this.phrase = phrase; 122 this.keySize = keySize; 123 } 124 125 } 126 127 } 128 129 | Popular Tags |