org.mozilla.jss.tests

Class SSLClientAuth

Implemented Interfaces:
Runnable

public class SSLClientAuth
extends java.lang.Object
implements Runnable

SSLClientAuth Server/client test.

Nested Class Summary

static class
SSLClientAuth.HandshakeListener

Field Summary

int
port
int
serialNum
boolean
serverReady
static SignatureAlgorithm
sigAlg

Method Summary

void
doIt(String[] args)
boolean
getSuccess()
static void
main(String[] args)
static Certificate
makeCert(String issuerName, String subjectName, int serialNumber, PrivateKey privKey, PublicKey pubKey, int rand, SEQUENCE extensions)
Method that generates a certificate for given credential
void
run()
Server run method.
void
setFailure()

Field Details

port

public int port

serialNum

public int serialNum

serverReady

public boolean serverReady

sigAlg

public static final SignatureAlgorithm sigAlg

Method Details

doIt

public void doIt(String[] args)
            throws Exception
Parameters:
args -

getSuccess

public boolean getSuccess()

main

public static void main(String[] args)
            throws Exception
Parameters:
args -

makeCert

public static Certificate makeCert(String issuerName,
                                   String subjectName,
                                   int serialNumber,
                                   PrivateKey privKey,
                                   PublicKey pubKey,
                                   int rand,
                                   SEQUENCE extensions)
            throws Exception
Method that generates a certificate for given credential
Parameters:
issuerName -
subjectName -
serialNumber -
privKey -
pubKey -
rand -
extensions -
Returns:

run

public void run()
Server run method.

setFailure

public void setFailure()