From the course: Learn Java Cryptography
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Building a Java keystore - Java Tutorial
From the course: Learn Java Cryptography
Building a Java keystore
- [Instructor] Now that we've talked a little bit about what a KeyStore is, we're gonna use the JCA to create an in-memory Java KeyStore that we could use with other systems on an internal network, if we decided to do so. Now we're going to store a shared symmetric key in order to avoid some of the messiness of JCA with certificates. But note that you can do this with certificate pairs if you wanna do that, so an X509 and a private key that matches it. I'd like you to go ahead and jump into your IDE, and we're gonna open up source, main, Java, and our com.frankmoley.crypto package, and let's create a new package underneath that called keystore. And to our keystore package we will create a new Java Class called KeyStoreUtils. And one more time, we will create a private static final String named SECRET_KEY_KEYSTORE_TYPE, and the type that we will use is JCEKS. And the reason we're gonna actually create a specific type of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.