Class TlsState

    • Constructor Detail

      • TlsState

        public TlsState​(TranscriptHash transcriptHash,
                        byte[] psk,
                        int keyLength,
                        int hashLength)
      • TlsState

        public TlsState​(TranscriptHash transcriptHash,
                        int keyLength,
                        int hashLength)
    • Method Detail

      • computeSharedSecret

        public void computeSharedSecret()
      • computeEarlyTrafficSecret

        public void computeEarlyTrafficSecret()
      • computeHandshakeSecrets

        public void computeHandshakeSecrets()
      • computeApplicationSecrets

        public void computeApplicationSecrets()
      • computeResumptionMasterSecret

        public void computeResumptionMasterSecret()
      • computePSK

        public byte[] computePSK​(byte[] ticketNonce)
      • hkdfExpandLabel

        public byte[] hkdfExpandLabel​(byte[] secret,
                                      java.lang.String label,
                                      java.lang.String context,
                                      short length)
      • getHashLength

        public short getHashLength()
      • getClientEarlyTrafficSecret

        public byte[] getClientEarlyTrafficSecret()
      • getClientHandshakeTrafficSecret

        public byte[] getClientHandshakeTrafficSecret()
      • getServerHandshakeTrafficSecret

        public byte[] getServerHandshakeTrafficSecret()
      • getClientApplicationTrafficSecret

        public byte[] getClientApplicationTrafficSecret()
      • getServerApplicationTrafficSecret

        public byte[] getServerApplicationTrafficSecret()
      • setOwnKey

        public void setOwnKey​(java.security.PrivateKey clientPrivateKey)
      • setPskSelected

        public void setPskSelected​(int selectedIdentity)
      • setNoPskSelected

        public void setNoPskSelected()
      • setPeerKey

        public void setPeerKey​(java.security.PublicKey serverSharedKey)