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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
pskClientCallback(WolfSSLSession ssl, java.lang.String hint, java.lang.StringBuffer identity, long idMaxLen, byte[] key, long keyMaxLen)
PSK client callback method.
-
-
-
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 hintidentity
- client identityidMaxLen
- maximum size in characters that identity can bekey
- client keykeyMaxLen
- maximum size in bytes that client key can be- Returns:
- length of key in octets or 0 for error
-
-