Creating SSO session with access token

Hello,

We received the access token , but for single sign-on, how to create the session within the desktop application? Also can you please suggest which SDK suits Java applications?