@Test public void testDeserializedMsg() throws HandshakeException { byte[] serializedMsg = msg.toByteArray(); HandshakeParameter parameter = new HandshakeParameter(KeyExchangeAlgorithm.ECDHE_PSK, CertificateType.X_509); EcdhPskClientKeyExchange handshakeMsg = DtlsTestTools.fromByteArray(serializedMsg, parameter, peerAddress); assertTrue(handshakeMsg.getIdentity().equals(identity)); assertNotNull(ephemeralKeyPointEncoded); assertArrayEquals(handshakeMsg.getEncodedPoint(), ephemeralKeyPointEncoded); }
public PskPublicInformation getIdentity() { return identity; }
EcdhPskClientKeyExchange extends ECDHClientKeyExchange { public PskPublicInformation getIdentity() { return identity; } }
EcdhPskClientKeyExchange extends ECDHClientKeyExchange { public PskPublicInformation getIdentity() { return identity; } EcdhPskClientKeyExchange(PskPublicInformation identity, byte[] encodedPoint, InetSocketAddress peerAddress); }
EcdhPskClientKeyExchange extends ECDHClientKeyExchange { public PskPublicInformation getIdentity() { return identity; } EcdhPskClientKeyExchange(PskPublicInformation identity, byte[] encodedPoint, InetSocketAddress peerAddress); static HandshakeMessage fromReader(DatagramReader reader, InetSocketAddress peerAddress); @Override int getMessageLength(); @Override String toString(); PskPublicInformation getIdentity(); }
EcdhPskClientKeyExchange extends ECDHClientKeyExchange { public PskPublicInformation getIdentity() { return identity; } EcdhPskClientKeyExchange(PskPublicInformation identity, byte[] encodedPoint, InetSocketAddress peerAddress); static HandshakeMessage fromReader(DatagramReader reader, InetSocketAddress peerAddress); @Override int getMessageLength(); @Override String toString(); PskPublicInformation getIdentity();  }