@ SuppressWarnings ( "unchecked" ) public static Collection < String > parseMechanisms ( Element mechanismsEl ) throws Exception { List < Element > mechanisms = mechanismsEl . elements ( "mechanism" ) ; List < String > mechanismsStr = new LinkedList < String > ( ) ; for ( Element mechanismEl : mechanisms ) { mechanismsStr . add ( mechanismEl . getText ( ) ) ; } return mechanismsStr ; }
Parse the available SASL mechanisms reported from the server .