在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:eclipse/californium开源软件地址:https://github.com/eclipse/californium开源编程语言:Java 98.7%开源软件介绍:Californium (Cf) - CoAP for JavaEclipse Californium is a Java implementation of RFC7252 - Constrained Application Protocol for IoT Cloud services. Thus, the focus is on scalability and usability instead of resource-efficiency like for embedded devices. Yet Californium is also suitable for embedded JVMs. More information can be found at http://www.eclipse.org/californium/ and http://coap.technology/. Build using MavenYou need to have a working maven installation to build Californium. Then simply run the following from the project's root directory: $ mvn clean install Executable JARs of the examples with all dependencies can be found in the The build-process in branch To generate the javadocs, add "-DcreateJavadoc=true" to the command line and set the $ mvn clean install -DcreateJavadoc=true Build earlier release!!! Since 29. October 2021 !!!The hostname "non-existing.host" is now existing and all builds of version and tags before that date will fail the tests. Therefore use -DskipTests To (re-)build versions before that date the unit tests must therefore be skipped. $ mvn clean install -DskipTests Earlier versions (3.0.0-Mx, 2.6.5 and before) may also fail to build with newer JDKs, especially, if java 16 or 17 is used! That is cause by the unit test dependency to a deprecated version of "mockito". If such a (re-)build is required, the unit tests must be skipped (which is in the meantime anyway required caused by the "non-existing.host"). In combination with the "non-existing.host" now existing, the build with unit test only works for the current heads of the branches Build jdk7 compliantCalifornium 2.x and newer can be used with java 7 or newer. If you want to build it with a jdk 7, but use also plugins which are only supported for newer jdks, the toolchain plugin could be used. That requires a toolchains configuration in "toolchains.xml" in your maven ".m2" folder <?xml version="1.0" encoding="UTF8"?>
<toolchains>
<!-- JDK toolchains -->
<toolchain>
<type>jdk</type>
<provides>
<version>1.7</version>
</provides>
<configuration>
<jdkHome>path..to..jdk7...home</jdkHome>
</configuration>
</toolchain>
</toolchains> To use the jdk7 toolchain, add "-DuseToolchain=true" to the command line. $ mvn clean install -DuseToolchain=true To use the jdk7 toolchain and create javadocs, add "-DuseToolchainJavadoc=true" to the command line ( $ mvn clean install -DuseToolchainJavadoc=true Build with jdk11 and EdDSA supportTo support EdDSA, either java 15, java 16, java 17 or java 11 with ed25519-java is required at runtime. Using java 15 (or newer) to build Californium, leaves out $ mvn clean install -Dno.net.i2p.crypto.eddsa=true Note: if "-DuseToolchain=true" is used and the actual jdk to build is java 11, you must disable the i2p eddsa support as well. # java 11 with java 7 toolchain
$ mvn clean install -DuseToolchain=true -Dno.net.i2p.crypto.eddsa=true In that case, it's still possible to use Note: using the oracle build 28 of openjdk 11 uncovers, that calling Run unit tests using Bouncy Castle as alternative JCE providerWith 3.0 a first, experimental support for using Bouncy Castle (version 1.69, bcprov-jdk15on, bcpkix-jdk15on, and, for tls, bctls-jdk15on) is implemented. With 3.3 the tests are using the updated version 1.70 (for tls also bcutil-jdk15on is used additionally). To demonstrate the basic functions, run the unit-tests using the profile $ mvn clean install -Pbc-tests Supporting Bouncy Castle for the unit test uncovers a couple of differences, which required to adapt the implementation. It is assumed, that more will be found and more adaption will be required. If you find some, don't hesitate to report issues, perhaps research and analysis, and fixes. On the other hand, the project Californium will for now not be able to provide support for Bouncy Castle questions with or without relation to Californium. You may create issues, but it may be not possible for us to answer them. On issue seems to be the One option to overcome that on some linux variants is using A second option o overcome that is to setup
according your android variant. That may require some analysis by you. With that, it gets very time consuming to test all combinations. Therefore, if you need a specific one, please test it on your own. If you consider, that some adaption is required, let us know by creating an issue or PR. Using Californium in Maven ProjectsWe are publishing Californium's artifacts for milestones and releases to Maven Central.
To use the latest released version as a library in your projects, add the following dependency
to your <dependencies>
...
<dependency>
<groupId>org.eclipse.californium</groupId>
<artifactId>californium-core</artifactId>
<version>3.5.0</version>
</dependency>
...
</dependencies>
... Current BuildsYou can also be bold and try out the most recent build from
You can then simply depend on EclipseThe project can be easily imported into a recent version of the Eclipse IDE. Make sure to have the following before importing the Californium (Cf) projects:
Then choose [Import... » Maven » Existing Maven Projects] to import IntelliJThe project can also be imported to IntelliJ as follows: In IntelliJ, choose [File.. » Open] then select the location of the cloned repository in your filesystem. IntelliJ will then automatically import all projects and resolve required Maven dependencies. Interop ServerA test server is running at coap://californium.eclipseprojects.io:5683/ It is an instance of the cf-plugtest-server from the demo-apps. The root resource responds with its current version. More information can be found at http://www.eclipse.org/californium and technical details at https://projects.eclipse.org/projects/iot.californium. Another interop server with a different implementation can be found at coap://coap.me:5683/. More information can be found at http://coap.me/. Interop Server - (D)TLS SupportThe server uses the x509 Demo Certificates, which are usually recreated and replaced once a year. And the PSK credentials:
Note: TLS supports only the x509 Demo Certificates. Interop Server - OSCORE SupportThe server has a resource only accessible using OSCORE under "/oscore". It is configured with the following security material (client side):
Note that the server supports running the Appendix B.2 context rederivation procedure. This is necessary as requests from new clients would otherwise be considered replays (as the server's replay window is filled up from earlier clients). To access this resource without using the Appendix B.2 procedure, an appropriate Sender Sequence Number to use and the current ID Context can be retrieved from the resource "/oscoreInfo" using plain CoAP. Currently Californium's OSCORE supports following algorithms: OSCORE Encryption:
OSCORE Key Rederivation:
Adapter SelectionFor some systems (particularly when multicasting), it may be necessary to specify/restrict californium to a particular network interface, or interfaces. This can be
achieved by setting the
ContactA bug, an idea, an issue? Join the Mailing list or create an issue here on GitHub. ContributingPlease check out our contribution guidelines |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论