Package com.wolfssl

Interface WolfSSLPskServerCallback


  • public interface WolfSSLPskServerCallback
    wolfSSL PSK Server Callback Interface. This interface specifies how applications should implement the PSK server callback class to be used by wolfSSL.

    After implementing this interface, it should be passed as a parameter to the WolfSSLContext.setPskServerCallback() method to be registered with the native wolfSSL library.

    Version:
    1.0, October 2015
    Author:
    wolfSSL
    • Method Detail

      • pskServerCallback

        long pskServerCallback​(WolfSSLSession ssl,
                               java.lang.String identity,
                               byte[] key,
                               long keyMaxLen)
        PSK server callback method. This method acts as a PSK server callback.
        Parameters:
        ssl - the current SSL session object from which the callback was initiated.
        identity - client identity
        key - server key
        keyMaxLen - maximum size in bytes that server key can be
        Returns:
        length of key in octets or 0 for error