Class AuthTokenCredentials
Contains the information for a user to authenticate.
Properties
NAME | TYPE | DESCRIPTION |
---|---|---|
PhoneKey | string | REQUIRED. The unique id for the phone. A GUID created by the app vendor at first time use and stored in long term storage on the device which is intended to be unique to the device and application. Limit of 100 characters. Printable characters only. |
Company | string | REQUIRED. The users company name. |
DeviceId | string | REQUIRED. The users device id. |
SignedDigestBase64 | string | REQUIRED. Signed Auth Token, Base64 encoded. |
UserName | string | REQUIRED. The users login name. |
Examples
{
"__type": "AuthTokenCredentials:#JackHenry.Eps.Mobile.RDC",
"UserName": "String Content",
"Company": "String Content",
"DeviceId": "String Content",
"SignedDigestBase64": "String Content"
}
Methods
Validate(IValidatorContext)
Declaration
public override void Validate(IValidatorContext context)
Parameters
TYPE | NAME | DESCRIPTION |
---|---|---|
JHA.EPS.SharedService.Common.Validator.IValidatorContext | context |
Overrides
CredentialsBase.Validate(IValidatorContext)
Exceptions
TYPE | DESCRIPTION |
---|---|
JHA.EPS.SharedService.Common.Validator.ValidationResult | UserName cannot be null |
JHA.EPS.SharedService.Common.Validator.ValidationResult | Company cannot be null |
JHA.EPS.SharedService.Common.Validator.ValidationResult | DeviceId cannot be null |
JHA.EPS.SharedService.Common.Validator.ValidationResult | SignedDigestBase64 cannot be null |
JHA.EPS.SharedService.Common.Validator.ValidationResult | SignedDigestBase64 must be Base64 encoded |