Class TlsState
java.lang.Object
tech.kwik.agent15.engine.impl.TlsState
- All Implemented Interfaces:
BinderCalculator
-
Constructor Summary
ConstructorsConstructorDescriptionTlsState(TranscriptHash transcriptHash, byte[] psk, int keyLength, int hashLength) TlsState(TranscriptHash transcriptHash, int keyLength, int hashLength) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidbyte[]computePSK(byte[] ticketNonce) byte[]computePskBinder(byte[] partialClientHello) voidvoidbyte[]byte[]byte[]shortbyte[]byte[]byte[]hkdfExpandLabel(byte[] secret, String label, String context, short length) voidvoidsetOwnKey(PrivateKey clientPrivateKey) voidsetPeerKey(PublicKey serverSharedKey) voidsetPskSelected(int selectedIdentity)
-
Constructor Details
-
TlsState
-
TlsState
-
-
Method Details
-
computePskBinder
public byte[] computePskBinder(byte[] partialClientHello) - Specified by:
computePskBinderin interfaceBinderCalculator
-
computeEarlyTrafficSecret
public void computeEarlyTrafficSecret() -
computeHandshakeSecrets
public void computeHandshakeSecrets() -
computeApplicationSecrets
public void computeApplicationSecrets() -
computeResumptionMasterSecret
public void computeResumptionMasterSecret() -
computePSK
public byte[] computePSK(byte[] ticketNonce) -
hkdfExpandLabel
-
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
-
setPskSelected
- Throws:
IllegalParameterAlert
-
setNoPskSelected
public void setNoPskSelected() -
setPeerKey
-