~brian-thomason/+junk/bouncycastle

« back to all changes in this revision

Viewing changes to src/org/bouncycastle/crypto/tls/TlsClientContextImpl.java

  • Committer: Brian Thomason
  • Date: 2011-12-20 17:20:32 UTC
  • Revision ID: brian.thomason@canonical.com-20111220172032-rdtm13jgdxtksacr
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.bouncycastle.crypto.tls;
 
2
 
 
3
import java.security.SecureRandom;
 
4
 
 
5
class TlsClientContextImpl implements TlsClientContext
 
6
{
 
7
    private SecureRandom secureRandom;
 
8
    private SecurityParameters securityParameters;
 
9
 
 
10
    private Object userObject = null;
 
11
 
 
12
    TlsClientContextImpl(SecureRandom secureRandom, SecurityParameters securityParameters)
 
13
    {
 
14
        this.secureRandom = secureRandom;
 
15
        this.securityParameters = securityParameters;
 
16
    }
 
17
 
 
18
    public SecureRandom getSecureRandom()
 
19
    {
 
20
        return secureRandom;
 
21
    }
 
22
 
 
23
    public SecurityParameters getSecurityParameters()
 
24
    {
 
25
        return securityParameters;
 
26
    }
 
27
 
 
28
    public Object getUserObject()
 
29
    {
 
30
        return userObject;
 
31
    }
 
32
 
 
33
    public void setUserObject(Object userObject)
 
34
    {
 
35
        this.userObject = userObject;
 
36
    }
 
37
}