... | ... | @@ -5,6 +5,8 @@ CoAP is an standardized REST-based protocol for constrained nodes and networks w |
|
|
|
|
|
The project jRECMA provides an integrity and authenticity protection for CoAP at the application layer. This is realized by signing CoAP messages as a whole.
|
|
|
|
|
|
**Note, that jRECMA is in an very early stage of development. Therefore, some features and tutorials are in development and will be published soon. Do not hesitate to contact us if you have any questions and comments.**
|
|
|
|
|
|
The following example shows how the authentication process of RECMA works.
|
|
|
|
|
|
Assume, that the following example message require to be authenticated.
|
... | ... | @@ -55,6 +57,7 @@ Key-ID: <$kid$> |
|
|
0xFF
|
|
|
{"item":"pork"}
|
|
|
```
|
|
|
|
|
|
## Signing CoAP requests with jRECMA
|
|
|
This an example showing how to sign a CoAP request with HMAC-SHA256.
|
|
|
```java
|
... | ... | |