private static String toCapabilityNames(CapabilitySet capabilities) {
        return capabilities.toCapabilityNames().stream().sorted().collect(Collectors.joining(", ", "[", "]"));
    }
Throws checked exception to force caller to handle verification failed.
Provided strings are used for improved logging only
security-utils/src/main/java/com/yahoo/security/tls/ConnectionAuthContext.java