OSID Logo
OSID Specifications
authentication keys package
Version 3.0.0
Release Candidate Preview
Interfaceosid.authentication.keys.KeyList
Implementsosid.OsidList
Description

Like all OsidLists, KeyList provides a means for accessing Key elements sequentially either one at a time or many at a time. Examples:

                     
                     
                     while (kl.hasNext()) {
                          Key key = kl.getNextKey();
                     }
                     
                                 
                     
                
or
                     
                     
                     while (kl.hasNext()) {
                          Key[] keys = kl.getNextKeys(kl.available());
                     }
                     
                                 
                     
                
MethodgetNextKey
Description

Gets the next Key in this list.

Returnosid.authentication.keys.Keythe next Key in this list. The hasNext() method should be used to test that a next Key is available before calling this method.
ErrorsILLEGAL_STATEno more elements available in this list
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetNextKeys
Description

Gets the next set of Key elements in this list which must be less than or equal to the number returned from available().

Parameterscardinalnthe number of Key elements requested which should be less than or equal to available()
Returnosid.authentication.keys.Key[]an array of Key elements. The length of the array is less than or equal to the number specified.
ErrorsILLEGAL_STATEno more elements available in this list
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.