42 * Pack of the "renegotiation_info" extensions [RFC 5746]. |
42 * Pack of the "renegotiation_info" extensions [RFC 5746]. |
43 */ |
43 */ |
44 final class RenegoInfoExtension { |
44 final class RenegoInfoExtension { |
45 static final HandshakeProducer chNetworkProducer = |
45 static final HandshakeProducer chNetworkProducer = |
46 new CHRenegotiationInfoProducer(); |
46 new CHRenegotiationInfoProducer(); |
47 static final ExtensionConsumer chOnLoadConcumer = |
47 static final ExtensionConsumer chOnLoadConsumer = |
48 new CHRenegotiationInfoConsumer(); |
48 new CHRenegotiationInfoConsumer(); |
49 static final HandshakeAbsence chOnLoadAbsence = |
49 static final HandshakeAbsence chOnLoadAbsence = |
50 new CHRenegotiationInfoAbsence(); |
50 new CHRenegotiationInfoAbsence(); |
51 |
51 |
52 static final HandshakeProducer shNetworkProducer = |
52 static final HandshakeProducer shNetworkProducer = |
53 new SHRenegotiationInfoProducer(); |
53 new SHRenegotiationInfoProducer(); |
54 static final ExtensionConsumer shOnLoadConcumer = |
54 static final ExtensionConsumer shOnLoadConsumer = |
55 new SHRenegotiationInfoConsumer(); |
55 new SHRenegotiationInfoConsumer(); |
56 static final HandshakeAbsence shOnLoadAbsence = |
56 static final HandshakeAbsence shOnLoadAbsence = |
57 new SHRenegotiationInfoAbsence(); |
57 new SHRenegotiationInfoAbsence(); |
58 |
58 |
59 static final SSLStringize rniStringize = |
59 static final SSLStringize rniStringize = |
207 |
207 |
208 @Override |
208 @Override |
209 public void consume(ConnectionContext context, |
209 public void consume(ConnectionContext context, |
210 HandshakeMessage message, ByteBuffer buffer) throws IOException { |
210 HandshakeMessage message, ByteBuffer buffer) throws IOException { |
211 |
211 |
212 // The comsuming happens in server side only. |
212 // The consuming happens in server side only. |
213 ServerHandshakeContext shc = (ServerHandshakeContext)context; |
213 ServerHandshakeContext shc = (ServerHandshakeContext)context; |
214 |
214 |
215 // Is it a supported and enabled extension? |
215 // Is it a supported and enabled extension? |
216 if (!shc.sslConfig.isAvailable(CH_RENEGOTIATION_INFO)) { |
216 if (!shc.sslConfig.isAvailable(CH_RENEGOTIATION_INFO)) { |
217 if (SSLLogger.isOn && SSLLogger.isOn("ssl,handshake")) { |
217 if (SSLLogger.isOn && SSLLogger.isOn("ssl,handshake")) { |