private static void loadDisabledAlgorithmsMap ( final String propertyName ) { String property = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { public String run ( ) { return Security . getProperty ( propertyName ) ; } } ) ; String [ ] algorithmsInProperty = null ; if ( property != null && ! property . isEmpty ( ) ) { // remove double quote marks from beginning/end of the property if ( property . charAt ( 0 ) == ' ' && property . charAt ( property . length ( ) - 1 ) == ' ' ) { property = property . substring ( 1 , property . length ( ) - 1 ) ; } algorithmsInProperty = property . split ( "," ) ; for ( int i = 0 ; i < algorithmsInProperty . length ; i ++ ) { algorithmsInProperty [ i ] = algorithmsInProperty [ i ] . trim ( ) ; } } // map the disabled algorithms if ( algorithmsInProperty == null ) { algorithmsInProperty = new String [ 0 ] ; } disabledAlgorithmsMap . put ( propertyName , algorithmsInProperty ) ; // map the key constraints KeySizeConstraints keySizeConstraints = new KeySizeConstraints ( algorithmsInProperty ) ; keySizeConstraintsMap . put ( propertyName , keySizeConstraints ) ; }
Get disabled algorithm constraints from the specified security property .