public class SSLClientAuth
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
static class |
SSLClientAuth.HandshakeListener |
Modifier and Type | Field and Description |
---|---|
int |
port |
int |
serialNum |
boolean |
serverReady |
static SignatureAlgorithm |
sigAlg |
Constructor and Description |
---|
SSLClientAuth() |
Modifier and Type | Method and Description |
---|---|
void |
doIt(java.lang.String[] args) |
boolean |
getSuccess() |
static void |
main(java.lang.String[] args) |
static Certificate |
makeCert(java.lang.String issuerName,
java.lang.String subjectName,
int serialNumber,
java.security.PrivateKey privKey,
java.security.PublicKey pubKey,
int rand,
SEQUENCE extensions)
Method that generates a certificate for given credential
|
void |
run()
Server run method.
|
void |
setFailure() |
public static final SignatureAlgorithm sigAlg
public int port
public int serialNum
public boolean serverReady
public static Certificate makeCert(java.lang.String issuerName, java.lang.String subjectName, int serialNumber, java.security.PrivateKey privKey, java.security.PublicKey pubKey, int rand, SEQUENCE extensions) throws java.lang.Exception
issuerName
- subjectName
- serialNumber
- privKey
- pubKey
- rand
- extensions
- java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- java.lang.Exception
public void doIt(java.lang.String[] args) throws java.lang.Exception
args
- java.lang.Exception
public void setFailure()
public boolean getSuccess()
public void run()
run
in interface java.lang.Runnable