public Credentials(AuthenticationTokenType authenticationTokenType, string token) { Ensure.ArgumentNotNull(nameof(authenticationTokenType), authenticationTokenType); Ensure.ArgumentNotNullOrEmptyString(nameof(token), token); Login = null; Password = token; AuthenticationType = authenticationTokenType == AuthenticationTokenType.AccessToken ? AuthenticationType.AccessToken : AuthenticationType.ServiceToken; }
/// <summary> /// Constructor /// </summary> /// <param name="tokenType">Token Type</param> public AuthenticationTokenRequiredException(AuthenticationTokenType tokenType) =>
/// <summary> /// Constructor /// </summary> /// <param name="tokenType">Token Type</param> public AuthenticationTokenRequiredArgs(AuthenticationTokenType tokenType) =>