When being questioned by the high priest about what he was teaching he replies that he has no secrets and he should ask those who heard him teach:
NASB John 18: 19The high priest then questioned Jesus about His disciples, and about His teaching. 20Jesus answered him, “I have spoken openly to the world; I always taught in synagogues and in the temple, where all the Jews come together; and I spoke nothing in secret. 21“Why do you question Me? Question those who have heard what I spoke to them; they know what I said.” 22When He had said this, one of the officers standing nearby struck Jesus, saying, “Is that the way You answer the high priest?” 23Jesus answered him, “If I have spoken wrongly, testify of the wrong; but if rightly, why do you strike Me?” 24So Annas sent Him bound to Caiaphas the high priest.
However, Matthew says that Jesus only spoke publicly in enigmas and gave secret information to his disciples:
NASB Matthew 13: 10And the disciples came and said to Him, “Why do You speak to them in parables?” 11Jesus answered them, “To you it has been granted to know the mysteries of the kingdom of heaven, but to them it has not been granted. 12“For whoever has, to him more shall be given, and he will have an abundance; but whoever does not have, even what he has shall be taken away from him. 13“Therefore I speak to them in parables; because while seeing they do not see, and while hearing they do not hear, nor do they understand.
We also see this in Mark:
BSB Mark 4: 33With many such parables Jesus spoke the word to them, to the extent that they could understand. 34He did not say anything to them without a parable. But privately He explained all things to His own disciples.
Was his answer to the high priest duplicitous?