Package com.skava.auth.web
Class SecretkeyController
java.lang.Object
com.skava.auth.web.SecretkeyController
This class act as a controller to handle the Secretkey manipulation.
List of operations handled by this controller are
List of operations handled by this controller are
- Secretkey create
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.skava.core.auth.model.AuthorizationSecret
createSecretKey
(Long businessId, String locale)
-
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
- aLong
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
- aString
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
-