-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate OSCORE object and use it for endpoint creation #736
Changes from 1 commit
708e734
8fc7bfc
dc37bd9
ebc728a
dd58e43
ecebdfa
3e7db26
ae73ab2
495d501
6617c21
a255bd6
3a4e777
401db2b
a83918e
40213f6
17098a7
7116077
0138768
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -373,8 +373,7 @@ public static void createAndStartClient(String endpoint, String localAddress, in | |
clientPrivateKey.getEncoded(), serverCertificate.getEncoded())); | ||
initializer.setInstancesForObject(SERVER, new Server(123, 30, BindingMode.U, false)); | ||
} else if (useOSCore) { | ||
Oscore oscoreObject = new Oscore("11223344", "AA", "BB"); //Hardcoded values | ||
oscoreObject.setId(12346); | ||
Oscore oscoreObject = new Oscore(12345, "11223344", "AA", "BB"); //Hardcoded values | ||
initializer.setInstancesForObject(SECURITY, oscoreOnly(serverURI, 123, oscoreObject.getId())); | ||
initializer.setInstancesForObject(OSCORE, oscoreObject); | ||
initializer.setInstancesForObject(SERVER, new Server(123, 30, BindingMode.U, false)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regarding your remarks here :
To be able to do that, you will probably need to add a new XML version of security object. You should get it here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The security object xml has been updated and a link to the OSCORE object introduced in commit ecebdfa |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clearly not a big deal but you can use
super(id)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, I will change that as part of the next commit. Done in commit 6617c21