Security Mode | Level 1 | Level 2 | Level 3 | Level 4 |
---|---|---|---|---|
Mode 1 (no security) |
No authentication No encryption |
N/A | N/A | N/A |
Mode 2 (service-level security) |
No authentication No encryption |
Authentication No encryption |
Authentication Encryption |
N/A |
Mode 3 (link-level security) |
Authentication Encryption |
N/A | N/A | N/A |
Mode 4(SSP-based service-level security) | N/A | Unauthenticated pairing (no MITM protection)Encryption | Authenticated pairing (MITM protection)Encryption | Authenticated pairing (MITM protection)EncryptionSecure connections |
If you already know Java and are just looking for a mapping of the Java concept to Kotlin, this will help.
+---------------------+--------------------------------+--------------------------+-----------------------+------------------------+
| | JAVA | KOTLIN |
| Pattern +--------------------------------+--------------------------+-----------------------+------------------------+
| | Declaration-site | Use-site | Declaration-site | Use-site |
+---------------------+--------------------------------+--------------------------+-----------------------+------------------------+
| Covariant (out) | class Box<T extends Animal> | Box<? extends Animal> | class Box<out T> | Box<out Animal> |
+---------------------+--------------------------------+--------------------------+-----------------------+--------