equal
deleted
inserted
replaced
321 static final OCSPStatusRequest EMPTY_OCSP; |
321 static final OCSPStatusRequest EMPTY_OCSP; |
322 static final OCSPStatusRequest EMPTY_OCSP_MULTI; |
322 static final OCSPStatusRequest EMPTY_OCSP_MULTI; |
323 |
323 |
324 final List<ResponderId> responderIds; |
324 final List<ResponderId> responderIds; |
325 final List<Extension> extensions; |
325 final List<Extension> extensions; |
326 private final int encodedLen; |
|
327 private final int ridListLen; |
326 private final int ridListLen; |
328 private final int extListLen; |
327 private final int extListLen; |
329 |
328 |
330 static { |
329 static { |
331 OCSPStatusRequest ocspReq = null; |
330 OCSPStatusRequest ocspReq = null; |
354 // 2: length of responder_id_list |
353 // 2: length of responder_id_list |
355 // +2: length of request_extensions |
354 // +2: length of request_extensions |
356 throw new SSLProtocolException( |
355 throw new SSLProtocolException( |
357 "Invalid OCSP status request: insufficient data"); |
356 "Invalid OCSP status request: insufficient data"); |
358 } |
357 } |
359 this.encodedLen = encoded.length; |
|
360 |
358 |
361 List<ResponderId> rids = new ArrayList<>(); |
359 List<ResponderId> rids = new ArrayList<>(); |
362 List<Extension> exts = new ArrayList<>(); |
360 List<Extension> exts = new ArrayList<>(); |
363 ByteBuffer m = ByteBuffer.wrap(encoded); |
361 ByteBuffer m = ByteBuffer.wrap(encoded); |
364 |
362 |
422 Locale.ENGLISH); |
420 Locale.ENGLISH); |
423 |
421 |
424 String ridStr = "<empty>"; |
422 String ridStr = "<empty>"; |
425 if (!responderIds.isEmpty()) { |
423 if (!responderIds.isEmpty()) { |
426 ridStr = responderIds.toString(); |
424 ridStr = responderIds.toString(); |
427 |
|
428 } |
425 } |
429 |
426 |
430 String extsStr = "<empty>"; |
427 String extsStr = "<empty>"; |
431 if (!extensions.isEmpty()) { |
428 if (!extensions.isEmpty()) { |
432 StringBuilder extBuilder = new StringBuilder(512); |
429 StringBuilder extBuilder = new StringBuilder(512); |