@@ -0,0 +1,1458 @@
+import java.io.FileInputStream;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.security.*;%0Aimport java.security.cert.CertificateException;%0Aimport java.util.Arrays;%0Aimport java.util.Properties;%0A%0Apublic final class DumpKey %7B%0A    private DumpKey() %7B %7D%0A%0A    public static void main(final String%5B%5D args) %7B%0A        Key key = loadKey();%0A        System.out.println(Arrays.toString(key.getEncoded()));%0A    %7D%0A%0A    private static Key loadKey() %7B%0A        try %7B%0A            Properties properties = new Properties();%0A            InputStream in = Crypto.class.getResourceAsStream(%22server.properties%22);%0A            properties.load(in);%0A            in.close();%0A            String location = properties.getProperty(%22keystore.location%22);%0A            String alias = properties.getProperty(%22keystore.alias%22);%0A            String password = properties.getProperty(%22keystore.password%22);%0A            InputStream inputStream = new FileInputStream(location);%0A            KeyStore keyStore = KeyStore.getInstance(%22JCEKS%22);%0A            keyStore.load(inputStream, password.toCharArray());%0A            inputStream.close();%0A%0A            return keyStore.getKey(alias, password.toCharArray());%0A        %7D catch (KeyStoreException %7C CertificateException %7C%0A                NoSuchAlgorithmException %7C IOException %7C%0A                UnrecoverableKeyException e) %7B%0A            e.printStackTrace();%0A            throw new RuntimeException(%22Could not load key%22);%0A        %7D%0A    %7D%0A%7D%0A

Add code to display encryption key