Package com.wolfssl

Interface WolfSSLPskClientCallback


  • public interface WolfSSLPskClientCallback
    wolfSSL PSK Client Callback Interface. This interface specifies how applications should implement the PSK client callback class to be used by wolfSSL.

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

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

      • pskClientCallback

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