Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IIdentityApplication.cs
2using System.Xml;
5
6namespace Paiwise
7{
11 [DefaultImplementation(typeof(IdentityApplication))]
12 public interface IIdentityApplication
13 {
18 bool Preview { get; }
19
24
29
33 KeyValuePair<string, object>[] Claims { get; }
34
38 IEnumerable<IPhoto> Photos { get; }
39
43 int NrPhotos { get; }
44
48 IEnumerable<XmlDocument> Documents { get; }
49
55 void ClaimValid(string Claim, object Service);
56
66 void ClaimInvalid(string Claim, string Reason, string ReasonLanguage,
67 string ReasonCode, object Service);
68
74 void PhotoValid(IPhoto Photo, object Service);
75
85 void PhotoInvalid(IPhoto Photo, string Reason, string ReasonLanguage,
86 string ReasonCode, object Service);
87
97 void ReportError(string Error, string ErrorLanguage, string ErrorCode,
98 ValidationErrorType ErrorType, object Service, params KeyValuePair<string, object>[] Tags);
99
104
109
113 string[] UnvalidatedClaims { get; }
114
119
124
129
134
138 bool HasErrors { get; }
139
143 int NrErrors { get; }
144
148 object[] Services { get; }
149
153 bool HasServices { get; }
154
158 int NrServices { get; }
159
164 bool? IsValid { get; }
165
169 bool HasValidatedClaims { get; }
170
174 bool HasValidatedPhotos { get; }
175
179 KeyValuePair<string, object>[] Tags { get; }
180
185
190
198 void InvalidateAllClaims(string Reason, string ReasonLanguage,
199 string ReasonCode);
200
208 void InvalidateAllPhotos(string Reason, string ReasonLanguage,
209 string ReasonCode);
210
221 void AddPotentialClaims(string Claim, object Value, bool InformUser, object Service);
222 }
223}
Represents an invalidated claim.
Definition: InvalidClaim.cs:10
Represents an invalidated photo.
Definition: InvalidPhoto.cs:10
Contains personal information found in a legal identity.
Represents a photo in an identity application.
Definition: Photo.cs:11
Represents a validated claim.
Definition: ValidClaim.cs:10
Represents a validated photo.
Definition: ValidPhoto.cs:10
Contains information about a validation error.
Interface for identity applications.
bool HasErrors
If errors are reported.
IPhoto[] UnvalidatedPhotos
Unvalidated photos.
void ClaimInvalid(string Claim, string Reason, string ReasonLanguage, string ReasonCode, object Service)
An identity authenticator service invalidates a claim.
IEnumerable< XmlDocument > Documents
Associated XML document attachments provided.
ValidPhoto[] ValidatedPhotos
Validated photos.
void ReportError(string Error, string ErrorLanguage, string ErrorCode, ValidationErrorType ErrorType, object Service, params KeyValuePair< string, object >[] Tags)
Reports an error encountered during validation.
InvalidPhoto[] InvalidatedPhotos
Invalidated photos.
void ValidateAllClaims()
Validates all claims.
KeyValuePair< string, object >[] Tags
Tags annotating the application, as reported by the different services.
bool Preview
If the application is a preview of an application. Previewed applications should not be persisted.
int NrServices
Number of services returning feedback on the the application.
bool HasValidatedClaims
If the application has validated claims.
int NrPhotos
Number of photos provided.
void PhotoValid(IPhoto Photo, object Service)
An identity authenticator service validates a photo.
KeyValuePair< string, object >[] Claims
Full set of claims made regarding the identity, as meta-data tags.
void ValidateAllPhotos()
Validates all photos
bool HasValidatedPhotos
If the application has validated photos.
object[] Services
Services involved in returning feedback on the application.
ValidationError[] Errors
Any errors reported during validation.
IAccount Account
Account over which the application was made.
void PhotoInvalid(IPhoto Photo, string Reason, string ReasonLanguage, string ReasonCode, object Service)
An identity authenticator service invalidates a photo.
ValidClaim[] ValidatedClaims
Validated claims.
void ClaimValid(string Claim, object Service)
An identity authenticator service validates a claim.
InvalidClaim[] InvalidatedClaims
Invalidated claims.
int NrErrors
Number of errors reported.
void InvalidateAllPhotos(string Reason, string ReasonLanguage, string ReasonCode)
Invalidates all photos
bool HasServices
If services have returned feedback on the application.
void AddPotentialClaims(string Claim, object Value, bool InformUser, object Service)
Adds potential claims to the application that can be used in a subsequent applcation....
bool? IsValid
If the application has been validated (true), invalidated (false), or not yet validated (null).
void InvalidateAllClaims(string Reason, string ReasonLanguage, string ReasonCode)
Invalidates all claims.
IEnumerable< IPhoto > Photos
Photos provided.
string[] UnvalidatedClaims
Unvalidated claims.
Interface for photos.
Definition: IPhoto.cs:10
Interface for SMTP user accounts.
Definition: IAccount.cs:11
ValidationErrorType
Type of validation error.