StreamSocketInformation.SessionKey | sessionKey property

Applies to Windows and Windows Phone

Get a byte array that represents the private shared secret exchanged by proximity devices.

Syntax


var sessionKey = streamSocketInformation.sessionKey;

Property value

Type: IBuffer

A byte array that represents the private shared secret exchanged by proximity devices.

Remarks

The SessionKey property is only used with a StreamSocket object created by proximity devices when initiated by tapping. The SessionKey property for a tapping device may contain an array with a private shared secret. A private shared secret is not required by a tapping device, so this property can be null.

For proximity devices initiated by tapping, the SessionKey property can be passed to Crypto runtime classes to handle encryption. For more information, see Supporting proximity and tapping, the Windows.Security.Cryptography.Core.SymmetricKeyAlgorithmProvider class, and related classes.

For other StreamSocket objects not initiated by tapping, the SessionKey property is always null.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

Other resources
How to use advanced socket controls (HTML)
How to use advanced socket controls (XAML)
Supporting proximity and tapping
Reference
StreamSocket
StreamSocketInformation
Windows.Networking.Proximity.PeerFinder
Windows.Security.Cryptography.Core.SymmetricKeyAlgorithmProvider

 

 

Show:
© 2014 Microsoft