Class AuthUtils


  • public final class AuthUtils
    extends Object
    • Method Detail

      • usesBearerAuth

        public static boolean usesBearerAuth​(IntermediateModel model)
        Returns true if the service as a whole or any of its operations uses bearer auth type.
      • isOpBearerAuthPreferred

        public static boolean isOpBearerAuthPreferred​(IntermediateModel model,
                                                      OperationModel opModel)
        Returns true if and only if the operation should use bearer auth as the first preferred auth scheme.