org.openorb.orb.ssl
Class SSLCipherSuiteDatabase

java.lang.Object
  extended by org.openorb.orb.ssl.SSLCipherSuiteDatabase

public final class SSLCipherSuiteDatabase
extends java.lang.Object

Database of SSL cypher suites.

Author:
Chris Wood

Method Summary
static int getAssociaionOptions(java.lang.String cypherSuite)
          Return the options values for a cipher suite.
static java.lang.String[] getCipherSuites(int assocRequires, int assocSupports, java.lang.String[] supportedCipherSuites)
          Return an array of cipher suites that match the assocRequires and assocSupports options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCipherSuites

public static java.lang.String[] getCipherSuites(int assocRequires,
                                                 int assocSupports,
                                                 java.lang.String[] supportedCipherSuites)
Return an array of cipher suites that match the assocRequires and assocSupports options.

Parameters:
assocRequires - The required associations.
assocSupports - The supported associations.
supportedCipherSuites - The overall supported cipher suites.
Returns:
The cipher suites that matches the two options.

getAssociaionOptions

public static int getAssociaionOptions(java.lang.String cypherSuite)
Return the options values for a cipher suite.

Parameters:
cypherSuite - The cipher suite to get the options value for.
Returns:
The int value for the cipher suite.