public static ArrayList < Algorithms > algorithms ( ) { ArrayList < Algorithms > algorithms = new ArrayList < Algorithms > ( ) ; for ( String alg : getPropertyValue ( Key . ALGORITHMS ) . split ( "," ) ) { alg = alg . trim ( ) ; try { algorithms . add ( Algorithms . valueOf ( alg ) ) ; } catch ( Exception e ) { // skip } } if ( ! algorithms . contains ( getDefaultAlgorithm ( ) ) ) { algorithms . add ( getDefaultAlgorithm ( ) ) ; } return algorithms ; }
Returns a list of valid algorithms to be used when fingerprinting . If not specified or if all values are illegal all available algorithms are used .