Class Authorization

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ApiResponse getAuthorizationDetectionMethod​(java.lang.String contextid)
      Obtains all the configuration of the authorization detection method that is currently set for a context.
      ApiResponse setBasicAuthorizationDetectionMethod​(java.lang.String contextid, java.lang.String headerregex, java.lang.String bodyregex, java.lang.String statuscode, java.lang.String logicaloperator)
      Sets the authorization detection method for a context as one that identifies un-authorized messages based on: the message's status code or a regex pattern in the response's header or body.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Authorization

        public Authorization​(ClientApi api)
    • Method Detail

      • getAuthorizationDetectionMethod

        public ApiResponse getAuthorizationDetectionMethod​(java.lang.String contextid)
                                                    throws ClientApiException
        Obtains all the configuration of the authorization detection method that is currently set for a context.
        Throws:
        ClientApiException
      • setBasicAuthorizationDetectionMethod

        public ApiResponse setBasicAuthorizationDetectionMethod​(java.lang.String contextid,
                                                                java.lang.String headerregex,
                                                                java.lang.String bodyregex,
                                                                java.lang.String statuscode,
                                                                java.lang.String logicaloperator)
                                                         throws ClientApiException
        Sets the authorization detection method for a context as one that identifies un-authorized messages based on: the message's status code or a regex pattern in the response's header or body. Also, whether all conditions must match or just some can be specified via the logicalOperator parameter, which accepts two values: "AND" (default), "OR".
        Throws:
        ClientApiException