net.jradius.tls
Class DefaultTlsClient

java.lang.Object
  extended by net.jradius.tls.DefaultTlsClient

public class DefaultTlsClient
extends Object


Constructor Summary
DefaultTlsClient(CertificateVerifyer verifyer)
           
 
Method Summary
 net.jradius.tls.TlsCipher createCipher(net.jradius.tls.SecurityParameters securityParameters)
           
 net.jradius.tls.TlsKeyExchange createKeyExchange()
           
 void enableClientAuthentication(Certificate clientCertificate, org.bouncycastle.crypto.params.AsymmetricKeyParameter clientPrivateKey)
           
 byte[] generateCertificateSignature(byte[] md5andsha1)
           
 Hashtable generateClientExtensions()
           
 Certificate getCertificate()
           
 int[] getCipherSuites()
           
 void init(TlsProtocolHandler handler)
           
 void notifySelectedCipherSuite(int selectedCipherSuite)
           
 void notifySessionID(byte[] sessionID)
           
 void processServerCertificateRequest(byte[] certificateTypes, List certificateAuthorities)
           
 void processServerExtensions(Hashtable serverExtensions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTlsClient

public DefaultTlsClient(CertificateVerifyer verifyer)
Method Detail

enableClientAuthentication

public void enableClientAuthentication(Certificate clientCertificate,
                                       org.bouncycastle.crypto.params.AsymmetricKeyParameter clientPrivateKey)

init

public void init(TlsProtocolHandler handler)

getCipherSuites

public int[] getCipherSuites()

generateClientExtensions

public Hashtable generateClientExtensions()

notifySessionID

public void notifySessionID(byte[] sessionID)

notifySelectedCipherSuite

public void notifySelectedCipherSuite(int selectedCipherSuite)

processServerExtensions

public void processServerExtensions(Hashtable serverExtensions)

createKeyExchange

public net.jradius.tls.TlsKeyExchange createKeyExchange()
                                                 throws IOException
Throws:
IOException

processServerCertificateRequest

public void processServerCertificateRequest(byte[] certificateTypes,
                                            List certificateAuthorities)

generateCertificateSignature

public byte[] generateCertificateSignature(byte[] md5andsha1)
                                    throws IOException
Throws:
IOException

getCertificate

public Certificate getCertificate()

createCipher

public net.jradius.tls.TlsCipher createCipher(net.jradius.tls.SecurityParameters securityParameters)
                                       throws IOException
Throws:
IOException


Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.