Modernize the JWT examples.

1) Avoid readers and writers.
2) Don't catch exceptions and exit. Java exits automatically if an exception is uncought.
3) Don't exit before return. Java exits if you return from main.
4) Use nio instead of io.

PiperOrigin-RevId: 529074945
Change-Id: Id5df47e1b110be7bbad2e680b6a370c08963657d
4 files changed
tree: d1e94417619306144c763fa58a98cdec49a0f177
  1. docs/
  2. examples/
  3. kokoro/
  4. maven/
  5. proto/
  6. src/
  7. src_android/
  8. testdata/
  9. tools/
  10. .bazelignore
  11. .bazelversion
  12. BUILD.bazel
  13. jar_jar_rules.txt
  14. LICENSE
  15. README.md
  16. template_rule.bzl
  17. tink_java_deps.bzl
  18. tink_java_deps_init.bzl
  19. version.bzl
  20. WORKSPACE
README.md

Tink Java

TestGCP UbuntuMacOS
Tink (Bazel)Bazel_GcpUbuntuBazel_MacOs
Tink ExamplesExamples_Bazel_GcpUbuntuExamples_Bazel_MacOs

Using crypto in your application shouldn't have to feel like juggling chainsaws in the dark. Tink is a crypto library written by a group of cryptographers and security engineers at Google. It was born out of our extensive experience working with Google's product teams, fixing weaknesses in implementations, and providing simple APIs that can be used safely without needing a crypto background.

Tink provides secure APIs that are easy to use correctly and hard(er) to misuse. It reduces common crypto pitfalls with user-centered design, careful implementation and code reviews, and extensive testing. At Google, Tink is one of the standard crypto libraries, and has been deployed in hundreds of products and systems.

To get a quick overview of Tink's design please take a look at Tink's goals.

The official documentation is available at https://developers.google.com/tink.

Contact and mailing list

If you want to contribute, please read CONTRIBUTING and send us pull requests. You can also report bugs or file feature requests.

If you'd like to talk to the developers or get notified about major product updates, you may want to subscribe to our mailing list.

Maintainers

Tink is maintained by (A-Z):

  • Moreno Ambrosin
  • Taymon Beal
  • William Conner
  • Thomas Holenstein
  • Stefan Kölbl
  • Charles Lee
  • Cindy Lin
  • Fernando Lobato Meeser
  • Ioana Nedelcu
  • Sophie Schmieg
  • Elizaveta Tretiakova
  • Jürg Wullschleger

Alumni:

  • Haris Andrianakis
  • Daniel Bleichenbacher
  • Tanuj Dhir
  • Thai Duong
  • Atul Luykx
  • Rafael Misoczki
  • Quan Nguyen
  • Bartosz Przydatek
  • Enzo Puig
  • Laurent Simon
  • Veronika Slívová
  • Paula Vidas