-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add java example #1
Conversation
2853cba
to
d9f96ac
Compare
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.
part 1 review
...n/java-example/src/main/java/com/fortanix/key_attestation_statement_verification/Common.java
Outdated
Show resolved
Hide resolved
...n/java-example/src/main/java/com/fortanix/key_attestation_statement_verification/Common.java
Outdated
Show resolved
Hide resolved
...n/java-example/src/main/java/com/fortanix/key_attestation_statement_verification/Verify.java
Outdated
Show resolved
Hide resolved
...n/java-example/src/main/java/com/fortanix/key_attestation_statement_verification/Verify.java
Outdated
Show resolved
Hide resolved
...n/java-example/src/main/java/com/fortanix/key_attestation_statement_verification/Verify.java
Outdated
Show resolved
Hide resolved
...com/fortanix/key_attestation_statement_verification/certchecker/FortanixRootCertChecker.java
Outdated
Show resolved
Hide resolved
...fortanix/key_attestation_statement_verification/certchecker/KeyAttestationCaCertChecker.java
Outdated
Show resolved
Hide resolved
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.
I've left another round of (mostly) nitpicks. Even if you choose to ignore my suggestions, I do hope you at least give my comments a read.
Otherwise, I don't see any red flags at all. (But hey, I'm not a Java pro, so 🤷). Let me know when you want me to take another look and/or approve.
...estation/java-example/src/main/java/com/fortanix/keyattestationstatementverifier/Verify.java
Show resolved
Hide resolved
...estation/java-example/src/main/java/com/fortanix/keyattestationstatementverifier/Verify.java
Outdated
Show resolved
Hide resolved
...estation/java-example/src/main/java/com/fortanix/keyattestationstatementverifier/Verify.java
Outdated
Show resolved
Hide resolved
...estation/java-example/src/main/java/com/fortanix/keyattestationstatementverifier/Verify.java
Show resolved
Hide resolved
...tanix/keyattestationstatementverifier/certchecker/DsmKeyAttestationAuthorityCertChecker.java
Outdated
Show resolved
Hide resolved
...n/java/com/fortanix/keyattestationstatementverifier/types/asn1/NodeEnrollmentPolicyItem.java
Outdated
Show resolved
Hide resolved
...-example/src/main/java/com/fortanix/keyattestationstatementverifier/types/asn1/KeyUsage.java
Outdated
Show resolved
Hide resolved
...in/java/com/fortanix/keyattestationstatementverifier/types/json/KeyAttestationStatement.java
Outdated
Show resolved
Hide resolved
key-attestation/java-example/src/test/resources/key-attestation-response.json
Outdated
Show resolved
Hide resolved
key-attestation/java-example/src/test/resources/key-attestation-statement.pem
Outdated
Show resolved
Hide resolved
...fortanix/keyattestationstatementverifier/certchecker/KeyAttestationStatementCertChecker.java
Outdated
Show resolved
Hide resolved
Since we cannot expect what kind of asymmetric key will be in Key Attestation statement, we can skip the check of public key for now.
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.
Looks good to me
...estation/java-example/src/main/java/com/fortanix/keyattestationstatementverifier/Verify.java
Outdated
Show resolved
Hide resolved
Refactor KeyUsageExt into a bitflags like type
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.
Thanks for writing this tool up!
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.
Oh wow, you actually created a new KeyUsageExt type 😲
No description provided.