Copyright (c) 2013-2015 Sierra Wireless and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
and Eclipse Distribution License v1.0 which accompany this distribution.
The Eclipse Public License is available at
and the Eclipse Distribution License is available at
Sierra Wireless - initial API and implementation
The security info for a client.
The following security modes are supported:
- Pre-Shared Key: an identity and a key are needed
- Raw Public Key Certificate: a public key is needed
when using DTLS with Pre-Shared Keys.
return new SecurityInfo(endpoint, identity, preSharedKey, null);
when using DTLS with Raw Public Key (RPK).
return new SecurityInfo(endpoint, null, null, rawPublicKey);