Class TlsState

java.lang.Object
tech.kwik.agent15.engine.impl.TlsState
All Implemented Interfaces:
BinderCalculator

public class TlsState extends Object implements BinderCalculator
  • Constructor Details

    • TlsState

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

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

    • computePskBinder

      public byte[] computePskBinder(byte[] partialClientHello)
      Specified by:
      computePskBinder in interface BinderCalculator
    • computeSharedSecret

      public void computeSharedSecret() throws IllegalParameterAlert
      Throws:
      IllegalParameterAlert
    • 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, String label, 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(PrivateKey clientPrivateKey)
    • setPskSelected

      public void setPskSelected(int selectedIdentity) throws IllegalParameterAlert
      Throws:
      IllegalParameterAlert
    • setNoPskSelected

      public void setNoPskSelected()
    • setPeerKey

      public void setPeerKey(PublicKey serverSharedKey)