-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simon Greatrix
committed
Nov 22, 2015
1 parent
fc31ac0
commit 7e24d49
Showing
152 changed files
with
5,908 additions
and
7,354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package tlsv12; | ||
|
||
import javax.net.ssl.HttpsURLConnection; | ||
|
||
import java.io.IOException; | ||
import java.io.InputStream; | ||
|
||
public class Example { | ||
|
||
static void fetchPage(HttpsURLConnection conn) { | ||
try { | ||
InputStream in = conn.getInputStream(); | ||
int r; | ||
while( (r = in.read()) != -1 ) { | ||
System.out.print((char) r); | ||
} | ||
in.close(); | ||
conn.disconnect(); | ||
System.out.println(); | ||
} catch (IOException ioe) { | ||
ioe.printStackTrace(); | ||
} | ||
} | ||
|
||
|
||
public static void main(String[] args) throws IOException { | ||
// System.setProperty("javax.net.debug", "ssl"); | ||
|
||
System.out.println("Fetching from Google"); | ||
HttpsURLConnection conn = Tls12Context.getConnection("https://www.google.com"); | ||
fetchPage(conn); | ||
|
||
System.out.println("Fetching from Facebook"); | ||
conn = Tls12Context.getConnection("https://www.facebook.com"); | ||
fetchPage(conn); | ||
|
||
System.out.println("Fetching from Cybersource"); | ||
conn = Tls12Context.getConnection("https://www.cybersource.com"); | ||
fetchPage(conn); | ||
|
||
System.out.println("Fetching from Harte Hanks"); | ||
conn = Tls12Context.getConnection("https://www.hartehanks.com"); | ||
fetchPage(conn); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
package tlsv12.asn1; | ||
|
||
|
||
/** | ||
* Interface to parse ASN.1 application specific objects. | ||
*/ | ||
public interface ASN1ApplicationSpecificParser | ||
extends ASN1Encodable, InMemoryRepresentable | ||
{ | ||
|
||
public interface ASN1ApplicationSpecificParser extends ASN1Encodable, | ||
InMemoryRepresentable { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.