Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Interface TlsContext

All Known Subinterfaces:
TlsClientContext, TlsServerContext

Deprecated. Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).

public interface TlsContext


Method Summary
 byte[] exportKeyingMaterial(java.lang.String asciiLabel, byte[] context_value, int length)
          Deprecated. Export keying material according to RFC 5705: "Keying Material Exporters for TLS".
 ProtocolVersion getClientVersion()
          Deprecated.  
 RandomGenerator getNonceRandomGenerator()
          Deprecated.  
 TlsSession getResumableSession()
          Deprecated. Used to get the resumable session, if any, used by this connection.
 java.security.SecureRandom getSecureRandom()
          Deprecated.  
 SecurityParameters getSecurityParameters()
          Deprecated.  
 ProtocolVersion getServerVersion()
          Deprecated.  
 java.lang.Object getUserObject()
          Deprecated.  
 boolean isServer()
          Deprecated.  
 void setUserObject(java.lang.Object userObject)
          Deprecated.  
 

Method Detail

getNonceRandomGenerator

public RandomGenerator getNonceRandomGenerator()
Deprecated. 

getSecureRandom

public java.security.SecureRandom getSecureRandom()
Deprecated. 

getSecurityParameters

public SecurityParameters getSecurityParameters()
Deprecated. 

isServer

public boolean isServer()
Deprecated. 

getClientVersion

public ProtocolVersion getClientVersion()
Deprecated. 

getServerVersion

public ProtocolVersion getServerVersion()
Deprecated. 

getResumableSession

public TlsSession getResumableSession()
Deprecated. 
Used to get the resumable session, if any, used by this connection. Only available after the handshake has successfully completed.
Returns:
A TlsSession representing the resumable session used by this connection, or null if no resumable session available.
See Also:
TlsPeer.notifyHandshakeComplete()

getUserObject

public java.lang.Object getUserObject()
Deprecated. 

setUserObject

public void setUserObject(java.lang.Object userObject)
Deprecated. 

exportKeyingMaterial

public byte[] exportKeyingMaterial(java.lang.String asciiLabel,
                                   byte[] context_value,
                                   int length)
Deprecated. 
Export keying material according to RFC 5705: "Keying Material Exporters for TLS".
Parameters:
asciiLabel - indicates which application will use the exported keys.
context_value - allows the application using the exporter to mix its own data with the TLS PRF for the exporter output.
length - the number of bytes to generate
Returns:
a pseudorandom bit string of 'length' bytes generated from the master_secret.

Bouncy Castle Cryptography Library 1.64