|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--iaik.security.ssl.CipherSuiteList
This class implements a list of cipher suites to select the enabled cipher suites etc. Actually it is an ordered set and not a list, i.e. each elements can appear only once.
| Field Summary | |
static int |
L_DEFAULT
Selection constant for a list with the default ciphersuites. |
static int |
L_IMPLEMENTED
Selection constant for a list with all implemented ciphersuites. |
static int |
L_NONE
Selection constant for an empty list. |
| Constructor Summary | |
CipherSuiteList()
Create an empty ciphersuite list. |
|
CipherSuiteList(CipherSuite suite)
Create a new ciphersuite list with the specified suite as its only element. |
|
CipherSuiteList(CipherSuite[] suites)
Create a new ciphersuite list from the contents of the given array. |
|
CipherSuiteList(CipherSuiteList suites)
Create a copy of the given ciphersuite list. |
|
CipherSuiteList(int which)
Create a new ciphersuite list with the contents determined by the selection value. |
|
| Method Summary | |
void |
add(CipherSuite suite)
Add a ciphersuite to the end of this list. |
void |
add(CipherSuite[] suites)
Add all ciphersuite from an array to this list in order. |
void |
clear()
Remove all elements from this list. |
java.lang.Object |
clone()
Return a clone of this ciphersuite list. |
boolean |
contains(CipherSuite suite)
Test if the given ciphersuite is an element of this list. |
CipherSuite |
elementAt(int i)
Return the element at the given index. |
java.util.Enumeration |
elements()
Return an Enumeration of the elements of this list. |
void |
ensureAvailable()
Make sure this list only contains ciphersuites that can actually be used. |
void |
insertSorted(CipherSuite suite)
Perform a sorted insertion of the given ciphersuite into this list. |
void |
insertSorted(CipherSuite[] suites)
Perform a sorted insertion of the ciphersuites from the given array into this list. |
void |
intersectWith(CipherSuiteList other)
Compute the intersection of this list and another list. |
void |
remove(CipherSuite suite)
Remove a ciphersuite from this list. |
void |
remove(CipherSuite[] suites)
Remove all ciphersuite from an array from this list. |
int |
size()
Return the number of elements in this list. |
void |
sort()
Sort the ciphersuites by strength. |
CipherSuite[] |
toArray()
Convert this list to an array of ciphersuites. |
java.lang.String |
toString()
Return a string representation of this list. |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int L_NONE
public static final int L_DEFAULT
public static final int L_IMPLEMENTED
| Constructor Detail |
public CipherSuiteList()
public CipherSuiteList(int which)
Note that ensureAvailable() is automatically called on the created list.
public CipherSuiteList(CipherSuite suite)
public CipherSuiteList(CipherSuite[] suites)
public CipherSuiteList(CipherSuiteList suites)
| Method Detail |
public void add(CipherSuite suite)
public void remove(CipherSuite suite)
public boolean contains(CipherSuite suite)
public void add(CipherSuite[] suites)
public void remove(CipherSuite[] suites)
public void clear()
public CipherSuite[] toArray()
public int size()
public CipherSuite elementAt(int i)
throws java.lang.ArrayIndexOutOfBoundsException
public java.util.Enumeration elements()
public void insertSorted(CipherSuite suite)
Ciphersuites are sorted by cryptographic strength, the strongest come first. We define a ciphersuite to be stronger than another by the following ordered criteria.
public void insertSorted(CipherSuite[] suites)
public void sort()
public void ensureAvailable()
CipherSuite.isAvailable()public void intersectWith(CipherSuiteList other)
public java.lang.Object clone()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||