- java.lang.Object
-
- net.luminis.tls.extension.Extension
-
- net.luminis.tls.extension.PreSharedKeyExtension
-
- net.luminis.tls.extension.ServerPreSharedKeyExtension
-
public class ServerPreSharedKeyExtension extends PreSharedKeyExtension
TLS Pre-Shared Key Extension, ServerHello variant. see https://datatracker.ietf.org/doc/html/rfc8446#section-4.2.11
-
-
Constructor Summary
Constructors Constructor Description ServerPreSharedKeyExtension()ServerPreSharedKeyExtension(int selectedIdentity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()intgetSelectedIdentity()ServerPreSharedKeyExtensionparse(java.nio.ByteBuffer buffer)-
Methods inherited from class net.luminis.tls.extension.Extension
parseExtensionHeader, parseExtensionHeader
-
-
-
-
Method Detail
-
parse
public ServerPreSharedKeyExtension parse(java.nio.ByteBuffer buffer) throws DecodeErrorException
- Throws:
DecodeErrorException
-
getSelectedIdentity
public int getSelectedIdentity()
-
-