I'm trying to create an NFC based communication between my phone and my pc using an arduino. For that I implemented an service in java which provides an Input- and OutputStream for binary based communication. To encrypt the communication I'm using the C# SslStream on my pc to act as server. It can be created with any stream type (not only tcp). Does java also has an equivalent because its SSLSocket seems to work with tcp based communication only, doesn't it? I just want to use the Input- and OutputStream and encrypt the communication.
thanks in advance