1 | if (result == 0) {↵ | | 1 | if (result == 0) {↵
|
2 | List supported = checkSupportedAuthenticationMethods();↵ | | 2 | List supported = checkSupportedAuthenticationMethods();↵
|
|
3 | if (usingSSL) {↵ | | 3 | if (usingSSL) {↵
|
4 | // NOTE if SSL is possible we just need the plain login↵ | | 4 | // NOTE if SSL is possible we just need the plain login↵
|
5 | // since SSL does the encryption for us.↵ | | 5 | // since SSL does the encryption for us.↵
|
6 | result = ((Integer) supported.get(0)).intValue();↵ | | 6 | result = ((Integer) supported.get(0)).intValue();↵
|
7 | } else {↵ | | 7 | } else {↵
|
8 | Collections.sort(supported,↵ | | 8 | Collections.sort(supported,↵
|
9 | new AuthenticationSecurityComparator());↵ | | 9 | new AuthenticationSecurityComparator());↵
|
10 | result = ((Integer) supported.get(supported.size() - 1))↵ | | 10 | result = ((Integer) supported.get(supported.size() - 1))↵
|
11 | .intValue();↵ | | 11 | .intValue();↵
|
12 | | | 12 |
|