@ApplicationScoped @Path(value="/asm") public class AsmRestServices extends Object
Constructor and Description |
---|
AsmRestServices() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createAnonymousActivation()
This method creates anonymous user with prefix 'ANONY_' and also create
activation code for the created user.
|
javax.ws.rs.core.Response |
deleteAnonymousActivation(AsmDeleteAnonymousActivationRequest req)
This method deletes the anonymous user with given userId and it also
deletes activation code, user certificate and the device associated with
given user.
|
@POST @Produces(value="application/json") @Path(value="/_createAnonymousActivation") public javax.ws.rs.core.Response createAnonymousActivation()
AsmAnonymousActivationResponse
- returns userId,
activation code for newly created user.@POST @Consumes(value="application/json") @Produces(value="application/json") @Path(value="/_deleteAnonymousActivation") public javax.ws.rs.core.Response deleteAnonymousActivation(AsmDeleteAnonymousActivationRequest req)
userId
- - Id of the userAsmRestServicesResponse
This method returns the ErrorCode as follows :
OK - Deletion is successful.
USERID_INVALID - Id of the user is invalid.
USER_NOT_FOUND - User not found.
USER_CERTIFICATE_DELETION_PROHIBITED - User certificate deletion is prohibited.
USER_DELETION_PROHIBITED - User deletion is prohibited.
GENERAL_ERROR - Internal server error.Copyright © 2022 KOBIL Systems GmbH. All rights reserved.