concept device identity in category security
appears as: device identity, device identities

This is an excerpt from Manning's book API Security in Action.
During the handshake, the client provides a PSK identity to the server in the ClientKeyExchange message. The API can use this PSK ID to locate the correct PSK for that client. The server can look up the device profile for that device using the PSK ID at the same time that it loads the PSK, as shown in figure 13.2. Once the handshake has completed, the API is assured of the device identity by the mutual authentication that PSK cipher suites achieve.
Listing 13.6 Exposing the device identity
var server = new PSKTlsServer(crypto, new DeviceIdentityManager(deviceDb, encryptionKey)) { @Override protected ProtocolVersion[] getSupportedVersions() { return ProtocolVersion.DTLSv12.only(); } @Override protected int[] getSupportedCipherSuites() { return new int[] { CipherSuite.TLS_PSK_WITH_AES_128_CCM, CipherSuite.TLS_PSK_WITH_AES_128_CCM_8, CipherSuite.TLS_PSK_WITH_AES_256_CCM, CipherSuite.TLS_PSK_WITH_AES_256_CCM_8, CipherSuite.TLS_PSK_WITH_AES_128_GCM_SHA256, CipherSuite.TLS_PSK_WITH_AES_256_GCM_SHA384, CipherSuite.TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 }; } String getPeerDeviceIdentity() { #A return new String(context.getSecurityParametersConnection() #B .getPSKIdentity(), UTF_8); #B } };