Class SecretkeyController

java.lang.Object
com.skava.auth.web.SecretkeyController

@RestController @RequestMapping("/secretkey") public class SecretkeyController extends Object
This class act as a controller to handle the Secretkey manipulation.
List of operations handled by this controller are
  • Secretkey create
Author:
Infosys Equinox
  • Constructor Details

    • SecretkeyController

      public SecretkeyController()
      The class constructor.
  • Method Details

    • createSecretKey

      @PostMapping("") @ResponseStatus(CREATED) public com.skava.core.auth.model.AuthorizationSecret createSecretKey(@RequestParam(name="businessId",required=false,defaultValue="0") @AuditField(field="BUSINESS_ID") Long businessId, @RequestHeader(value="locale",required=false,defaultValue="en_US") @AuditField(field="LOCALE") String locale)
      Parameters:
      businessId - a Long object. Holds a valid business identifier. A Business is typically a customer who has signed up with Infosys Equinox to launch a commerce store or a digital experience. An Infosys Equinox Commerce Instance can have multiple Businesses under which there can be multiple stores - Logical entity which binds all the services together to bring in an storefront experience.
      locale - a String object. API Response and error messages will be responded in the locale mentioned in this parameter. Locale needs to be mentioned in Java standard locale format.
      Returns:
      generated secret key