~tritone-team/tritone/eucalyptus

« back to all changes in this revision

Viewing changes to clc/modules/authentication/src/main/java/com/eucalyptus/auth/util/SslSetup.java

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-12-01 21:09:28 UTC
  • mto: This revision was merged to the branch mainline in revision 75.
  • Revision ID: james.westby@ubuntu.com-20091201210928-o2dvg0ubljhb0ft6
Tags: upstream-1.6.1~bzr1083
ImportĀ upstreamĀ versionĀ 1.6.1~bzr1083

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
  public static SSLContext getServerContext( ) {
67
67
    return SERVER_CONTEXT;
68
68
  }
69
 
  
 
69
 
 
70
  public static SSLEngine getServerEngine() {
 
71
    SSLEngine engine = SslSetup.getServerContext( ).createSSLEngine( );
 
72
    engine.setUseClientMode( false );
 
73
    return engine;
 
74
  }
70
75
  public static SSLContext getClientContext( ) {
71
76
    return CLIENT_CONTEXT;
72
77
  }