add API to get RPK on DTLSSession

For leshan, we need to get the public key of a DTLSSession.
(see [discussion](http://dev.eclipse.org/mhonarc/lists/cf-dev/msg00132.html) on mailing list archive)