protected void processCertificateRequest(ClientHandshakeState state, byte[] body) throws IOException { if (state.authentication == null) { /* * RFC 2246 7.4.4. It is a fatal handshake_failure alert for an anonymous server to * request client identification. */ throw new TlsFatalAlert(AlertDescription.handshake_failure); } ByteArrayInputStream buf = new ByteArrayInputStream(body); state.certificateRequest = CertificateRequest.parse(state.clientContext, buf); TlsProtocol.assertEmpty(buf); state.keyExchange.validateCertificateRequest(state.certificateRequest); }
protected void processCertificateRequest(ClientHandshakeState state, byte[] body) throws IOException { if (state.authentication == null) { /* * RFC 2246 7.4.4. It is a fatal handshake_failure alert for an anonymous server to * request client identification. */ throw new TlsFatalAlert(AlertDescription.handshake_failure); } ByteArrayInputStream buf = new ByteArrayInputStream(body); state.certificateRequest = CertificateRequest.parse(state.clientContext, buf); TlsProtocol.assertEmpty(buf); state.keyExchange.validateCertificateRequest(state.certificateRequest); }
this.certificateRequest = CertificateRequest.parse(getContext(), buf);
this.certificateRequest = CertificateRequest.parse(getContext(), buf);