summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorSergio Giro <sgiro@google.com>2016-11-03 13:49:59 +0000
committerSergio Giro <sgiro@google.com>2016-11-03 15:10:18 +0000
commitfb4c7d4fd77a0e37a3414b7199e0020c19acc5e5 (patch)
treec04f479f49078af262730f8afc96b78b3075daf6 /annotations/generate_annotated_java_files.py
parent294a9056bb6d8ed2d06a05eb9ab5d30dbe167526 (diff)
sun.security.util: refactoring in DisabledAlgorithmConstraints
Port from jdk8u60: the class DisabledAlgorithmConstraints has been refactored by doing the following changes: - the class now extends from the abstract class AbstractAlgorithmConstraints - the method decompose has been moved to the class AlgorithmDecomposer - the logic for checking an algorithm in the method permits has been moved to checkAlgorithm in AbstractAlgorithmConstraints - the method loadDisabledAlgorithmsMap was replaced by loadAlgorithmsMap in AbstractAlgorithmConstraints, except for populating the field keySizeConstraints, which now happens in getKeySizeConstraints. The possible cause of this refactoring was to avoid repeating code with respect to a newly introduced class LegacyAlgorithmConstraints, which is not used in Android and was not ported. This code is exercised by tests.security.cert.X509CertSelectorTest Bug: 29631070 Test: run cts -m CtsLibcoreTestCases Change-Id: Icb8413bdce86dd25f61560622e9ff51159fe8368
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions