Class RegisterForAuthTokenRequest
This method is used to register for token authentication
Properties
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| RequestId | string | Unique identifier used to identify the request. Used when associating the request to the response. |
| RequestDate | dateTime | DateTime request was made. Request timeout is 1 minute. |
| Credentials | TokenCredentials | REQUIRED. The credentials given from your last response. |
| Company | string | REQUIRED. Max length 30 chars. |
| DeviceId | string | REQUIRED. Max length 50 chars. |
| PublicKeyBase64 | string | REQUIRED. Public Key Base64 encoded. Max length 4000 chars. |
| UserName | string | REQUIRED. Max length 30 chars. |
Examples
{
"__type":"RegisterForAuthTokenRequest:#JackHenry.Eps.Mobile.RDC",
"UserName":
"Company":
"DeviceId":
"PublicKeyBase64":
}
Methods
Validate(IValidatorContext)
Declaration
public override void Validate(IValidatorContext context)
Parameters
| TYPE | NAME | DESCRIPTION |
|---|---|---|
| JHA.EPS.SharedService.Common.Validator.IValidatorContext | context |
Overrides
AuthenticatedRequest.Validate(IValidatorContext)
Exceptions
| TYPE | DESCRIPTION |
|---|---|
| JHA.EPS.SharedService.Common.Validator.ValidationResult | UserName cannot be null |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | UserName must be between 1-30 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | UserName must contain visible characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Company cannot be null |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Company must be between 1-30 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Company must contain visible characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | DeviceId cannot be null |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | DeviceId must be between 1-50 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | DeviceId must contain visible characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | PublicKeyBase64 cannot be null |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | PublicKeyBase64 must be between 1-4000 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | PublicKeyBase64 must be Base64 encoded |