Initial commit
This commit is contained in:
26
src/main/java/fr/istic/chiffrement/Client.java
Normal file
26
src/main/java/fr/istic/chiffrement/Client.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package fr.istic.chiffrement;
|
||||
|
||||
public class Client {
|
||||
|
||||
private static char[] PASSWORD = "654321".toCharArray();
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
// Création d'un SSLContext comme pour le serveur
|
||||
// avec les caractéristiques suivantes :
|
||||
// + protocole utilisé : TLS
|
||||
// + format de clef PKCS12
|
||||
// + mot de passe store et clef : variable PASSWORD plus haut (ou null)
|
||||
// + keystore : clientstore.keys
|
||||
|
||||
// ...
|
||||
// ks.load(new FileInputStream("clientstore.keys"), null);
|
||||
// ..
|
||||
|
||||
// Creation des printwriter et buffered reader puis :
|
||||
|
||||
// out.write("PING");
|
||||
// out.flush();
|
||||
// System.out.println(in.readLine());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user