protected String newAlgorithm ( ) { if ( getModel ( ) . getAlgorithm ( ) == null ) { return SunJCEAlgorithm . PBEWithMD5AndDES . getAlgorithm ( ) ; } return getModel ( ) . getAlgorithm ( ) . getAlgorithm ( ) ; }
Factory method for creating a new algorithm that will be used with the cipher object . Overwrite this method to provide a specific algorithm .