public static boolean isHttpsOrSecure(final WebContext context) {
        return SCHEME_HTTPS.equalsIgnoreCase(context.getScheme()) || context.isSecure();
    }
Whether the request is HTTPS or secure.

@param context the current web context
@return whether the request is HTTPS or secure
pac4j-core/src/main/java/org/pac4j/core/context/WebContextHelper.java