C# Class Org.BouncyCastle.Crypto.Tls.TlsPskKeyExchange

(D)TLS PSK key exchange (RFC 4279).
Inheritance: Org.BouncyCastle.Crypto.Tls.AbstractTlsKeyExchange
Mostrar archivo Open project: mapo80/iTextSharp-Monotouch

Protected Properties

Property Type Description
context TlsClientContext
dhAgreeClientPrivateKey DHPrivateKeyParameters
dhAgreeServerPublicKey DHPublicKeyParameters
keyExchange KeyExchangeAlgorithm
premasterSecret byte[]
pskIdentity TlsPskIdentity
psk_identity_hint byte[]
rsaServerPublicKey RsaKeyParameters

Public Methods

Method Description
GenerateClientKeyExchange ( Stream output ) : void
GeneratePremasterSecret ( ) : byte[]
ProcessClientCredentials ( TlsCredentials clientCredentials ) : void
ProcessServerCertificate ( Certificate serverCertificate ) : void
ProcessServerKeyExchange ( Stream input ) : void
SkipClientCredentials ( ) : void
SkipServerCertificate ( ) : void
SkipServerKeyExchange ( ) : void
ValidateCertificateRequest ( CertificateRequest certificateRequest ) : void

Protected Methods

Method Description
GenerateOtherSecret ( int pskLength ) : byte[]

Private Methods

Method Description
TlsPskKeyExchange ( TlsClientContext context, KeyExchangeAlgorithm keyExchange, TlsPskIdentity pskIdentity ) : System

Method Details

GenerateClientKeyExchange() public method

public GenerateClientKeyExchange ( Stream output ) : void
output Stream
return void

GenerateOtherSecret() protected method

protected GenerateOtherSecret ( int pskLength ) : byte[]
pskLength int
return byte[]

GeneratePremasterSecret() public method

public GeneratePremasterSecret ( ) : byte[]
return byte[]

ProcessClientCredentials() public method

public ProcessClientCredentials ( TlsCredentials clientCredentials ) : void
clientCredentials TlsCredentials
return void

ProcessServerCertificate() public method

public ProcessServerCertificate ( Certificate serverCertificate ) : void
serverCertificate Certificate
return void

ProcessServerKeyExchange() public method

public ProcessServerKeyExchange ( Stream input ) : void
input Stream
return void

SkipClientCredentials() public method

public SkipClientCredentials ( ) : void
return void

SkipServerCertificate() public method

public SkipServerCertificate ( ) : void
return void

SkipServerKeyExchange() public method

public SkipServerKeyExchange ( ) : void
return void

ValidateCertificateRequest() public method

public ValidateCertificateRequest ( CertificateRequest certificateRequest ) : void
certificateRequest CertificateRequest
return void

Property Details

context protected_oe property

protected TlsClientContext context
return TlsClientContext

dhAgreeClientPrivateKey protected_oe property

protected DHPrivateKeyParameters dhAgreeClientPrivateKey
return DHPrivateKeyParameters

dhAgreeServerPublicKey protected_oe property

protected DHPublicKeyParameters dhAgreeServerPublicKey
return DHPublicKeyParameters

keyExchange protected_oe property

protected KeyExchangeAlgorithm keyExchange
return KeyExchangeAlgorithm

premasterSecret protected_oe property

protected byte[] premasterSecret
return byte[]

pskIdentity protected_oe property

protected TlsPskIdentity pskIdentity
return TlsPskIdentity

psk_identity_hint protected_oe property

protected byte[] psk_identity_hint
return byte[]

rsaServerPublicKey protected_oe property

protected RsaKeyParameters rsaServerPublicKey
return RsaKeyParameters