Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Paiwise.IdentityApplication Class Reference

Contains information about a legal identity application. More...

Inheritance diagram for Paiwise.IdentityApplication:
Paiwise.IIdentityApplication Paiwise.IdentityApplicationState Paiwise.IdentityReviewApplication

Public Member Functions

 IdentityApplication (string LegalId, string Namespace, bool Preview, PersonalInformation PersonalInformation, KeyValuePair< string, object >[] Claims, IEnumerable< IPhoto > Photos, IAccount Account)
 Contains information about a legal identity application. More...
 
 IdentityApplication (string LegalId, string Namespace, bool Preview, PersonalInformation PersonalInformation, KeyValuePair< string, object >[] Claims, IEnumerable< IPhoto > Photos, IEnumerable< XmlDocument > Documents, IAccount Account)
 Contains information about a legal identity application. More...
 
 IdentityApplication (IdentityApplication Application)
 Contains information about a legal identity application. More...
 
void ClaimValid (string Claim, object Service)
 An identity authenticator service validates a claim. More...
 
void ClaimInvalid (string Claim, string Reason, string ReasonLanguage, string ReasonCode, object Service)
 An identity authenticator service invalidates a claim. More...
 
void PhotoValid (IPhoto Photo, object Service)
 An identity authenticator service validates a photo. More...
 
void PhotoInvalid (IPhoto Photo, string Reason, string ReasonLanguage, string ReasonCode, object Service)
 An identity authenticator service invalidates a photo. More...
 
void ReportError (string Error, string ErrorLanguage, string ErrorCode, ValidationErrorType ErrorType, object Service, params KeyValuePair< string, object >[] Tags)
 Reports an error encountered during validation. More...
 
void LogResults ()
 Logs the results of the validation process to the event log. More...
 
string GetClientErrorMessageXml (out string Language, string DefaultMessage, string DefaultMessageCode, string DefaultLanguage)
 Gets the XML of the client error message. More...
 
string GetIdentityReviewXml ()
 Gets information about the review as XML. More...
 
void ValidateAllClaims ()
 Validates all claims. More...
 
void ValidateAllPhotos ()
 Validates all photos More...
 
void InvalidateAllClaims (string Reason, string ReasonLanguage, string ReasonCode)
 Invalidates all claims. More...
 
void InvalidateAllPhotos (string Reason, string ReasonLanguage, string ReasonCode)
 Invalidates all photos More...
 
bool TryGetValue< T > (string Claim, object Value, object Service, out T TypedValue)
 Tries to get a typed claim value from an untyped claim value. More...
 
void AddPotentialClaims (string Claim, object Value, bool InformUser, object Service)
 Adds potential claims to the application that can be used in a subsequent applcation. Can be used by preview applications to suggest claims that could be added to the application automatically, to simplify user experience. More...
 

Properties

bool Preview [get]
 If the application is a preview of an application. Previewed applications should not be persisted. More...
 
IAccount Account [get]
 Account over which the application was made. More...
 
PersonalInformation PersonalInformation [get]
 Personal information extracted from Claims. More...
 
KeyValuePair< string, object >[] Claims [get]
 Full set of claims made regarding the identity, as meta-data tags. More...
 
IEnumerable< IPhotoPhotos [get]
 Photos provided. More...
 
int NrPhotos [get]
 Number of photos provided. More...
 
IEnumerable< XmlDocument > Documents [get]
 Associated XML document attachments provided. More...
 
ValidClaim[] ValidatedClaims [get]
 Validated claims. More...
 
InvalidClaim[] InvalidatedClaims [get]
 Invalidated claims. More...
 
string[] UnvalidatedClaims [get]
 Unvalidated claims. More...
 
ValidPhoto[] ValidatedPhotos [get]
 Validated photos. More...
 
InvalidPhoto[] InvalidatedPhotos [get]
 Invalidated photos. More...
 
IPhoto[] UnvalidatedPhotos [get]
 Unvalidated photos. More...
 
PotentialClaim[] PotentialClaims [get]
 Potential claims More...
 
ValidationError[] Errors [get]
 Any errors reported during validation. More...
 
bool HasErrors [get]
 If errors are reported. More...
 
int NrErrors [get]
 Number of errors reported. More...
 
object[] Services [get]
 Services involved in returning feedback on the application. More...
 
bool HasServices [get]
 If services have returned feedback on the application. More...
 
int NrServices [get]
 Number of services returning feedback on the the application. More...
 
bool? IsValid [get]
 If the application has been validated (true), invalidated (false), or not yet validated (null). More...
 
bool HasValidatedClaims [get]
 If the application has validated claims. More...
 
bool HasValidatedPhotos [get]
 If the application has validated photos. More...
 
bool HasPotentialClaims [get]
 If the application has potential claims. More...
 
KeyValuePair< string, object >[] Tags [get]
 Tags annotating the application, as reported by the different services. More...
 
IValidationError FirstError [get]
 First error encountered during validation. More...
 

Detailed Description

Contains information about a legal identity application.

Definition at line 16 of file IdentityApplication.cs.

Constructor & Destructor Documentation

◆ IdentityApplication() [1/3]

Paiwise.IdentityApplication.IdentityApplication ( string  LegalId,
string  Namespace,
bool  Preview,
PersonalInformation  PersonalInformation,
KeyValuePair< string, object >[]  Claims,
IEnumerable< IPhoto Photos,
IAccount  Account 
)

Contains information about a legal identity application.

Parameters
LegalIdLegal ID
NamespaceNamespace used in request.
PreviewIf the application is a preview of an application. Previewed applications should not be persisted.
PersonalInformationPersonal information extracted from Claims .
ClaimsFull set of claims made regarding the identity, as meta-data tags.
PhotosPhotos provided.
AccountAccount over which the application was made.

Definition at line 59 of file IdentityApplication.cs.

◆ IdentityApplication() [2/3]

Paiwise.IdentityApplication.IdentityApplication ( string  LegalId,
string  Namespace,
bool  Preview,
PersonalInformation  PersonalInformation,
KeyValuePair< string, object >[]  Claims,
IEnumerable< IPhoto Photos,
IEnumerable< XmlDocument >  Documents,
IAccount  Account 
)

Contains information about a legal identity application.

Parameters
LegalIdLegal ID
NamespaceNamespace used in request.
PreviewIf the application is a preview of an application. Previewed applications should not be persisted.
PersonalInformationPersonal information extracted from Claims .
ClaimsFull set of claims made regarding the identity, as meta-data tags.
PhotosPhotos provided.
DocumentsAssociated XML document attachments provided.
AccountAccount over which the application was made.

Definition at line 81 of file IdentityApplication.cs.

◆ IdentityApplication() [3/3]

Paiwise.IdentityApplication.IdentityApplication ( IdentityApplication  Application)

Contains information about a legal identity application.

Parameters
ApplicationApplication to duplicate.

Definition at line 109 of file IdentityApplication.cs.

Member Function Documentation

◆ AddPotentialClaims()

void Paiwise.IdentityApplication.AddPotentialClaims ( string  Claim,
object  Value,
bool  InformUser,
object  Service 
)

Adds potential claims to the application that can be used in a subsequent applcation. Can be used by preview applications to suggest claims that could be added to the application automatically, to simplify user experience.

Parameters
ClaimThe claim that could be added.
ValueThe value of the claim.
InformUserIf the user can be informed by this potential claim, without risk of leaking sensitive personal information.
ServiceThe service adding the potential claim.

Implements Paiwise.IIdentityApplication.

Definition at line 974 of file IdentityApplication.cs.

◆ ClaimInvalid()

void Paiwise.IdentityApplication.ClaimInvalid ( string  Claim,
string  Reason,
string  ReasonLanguage,
string  ReasonCode,
object  Service 
)

An identity authenticator service invalidates a claim.

Parameters
ClaimClaim invalidated.
ReasonReason for invalidating claim.
ReasonLanguageISO code of language used for Reason .
ReasonCodeA machine-readable code for the reason for invalidating the claim. (Each service can define its own reason codes.)
ServiceService invalidating claim.

Implements Paiwise.IIdentityApplication.

Definition at line 195 of file IdentityApplication.cs.

◆ ClaimValid()

void Paiwise.IdentityApplication.ClaimValid ( string  Claim,
object  Service 
)

An identity authenticator service validates a claim.

Parameters
ClaimClaim validated.
ServiceService validating claim.

Implements Paiwise.IIdentityApplication.

Definition at line 169 of file IdentityApplication.cs.

◆ GetClientErrorMessageXml()

string Paiwise.IdentityApplication.GetClientErrorMessageXml ( out string  Language,
string  DefaultMessage,
string  DefaultMessageCode,
string  DefaultLanguage 
)

Gets the XML of the client error message.

Parameters
LanguageLanguage used for main message.
DefaultMessageDefault message, in case there is no error message available.
DefaultMessageCodeDefault message code, if there is no error message available.
DefaultLanguageDefault language code, if there is no error message available.
Returns
XML message that can be sent to the client.

Definition at line 701 of file IdentityApplication.cs.

◆ GetIdentityReviewXml()

string Paiwise.IdentityApplication.GetIdentityReviewXml ( )

Gets information about the review as XML.

Returns
XML document that can be added as an attachment to the identity.

Definition at line 733 of file IdentityApplication.cs.

◆ InvalidateAllClaims()

void Paiwise.IdentityApplication.InvalidateAllClaims ( string  Reason,
string  ReasonLanguage,
string  ReasonCode 
)

Invalidates all claims.

Parameters
ReasonReason for invalidating claim.
ReasonLanguageISO code of language used for Reason .
ReasonCodeA machine-readable code for the reason for invalidating the claim. (Each service can define its own reason codes.)

Implements Paiwise.IIdentityApplication.

Definition at line 916 of file IdentityApplication.cs.

◆ InvalidateAllPhotos()

void Paiwise.IdentityApplication.InvalidateAllPhotos ( string  Reason,
string  ReasonLanguage,
string  ReasonCode 
)

Invalidates all photos

Parameters
ReasonReason for invalidating claim.
ReasonLanguageISO code of language used for Reason .
ReasonCodeA machine-readable code for the reason for invalidating the claim. (Each service can define its own reason codes.)

Implements Paiwise.IIdentityApplication.

Definition at line 931 of file IdentityApplication.cs.

◆ LogResults()

void Paiwise.IdentityApplication.LogResults ( )

Logs the results of the validation process to the event log.

Definition at line 629 of file IdentityApplication.cs.

◆ PhotoInvalid()

void Paiwise.IdentityApplication.PhotoInvalid ( IPhoto  Photo,
string  Reason,
string  ReasonLanguage,
string  ReasonCode,
object  Service 
)

An identity authenticator service invalidates a photo.

Parameters
PhotoPhoto invalidated.
ReasonReason for invalidating photo.
ReasonLanguageISO code of language used for Reason .
ReasonCodeA machine-readable code for the reason for invalidating the photo. (Each service can define its own reason codes.)
ServiceService validating photo.

Implements Paiwise.IIdentityApplication.

Definition at line 242 of file IdentityApplication.cs.

◆ PhotoValid()

void Paiwise.IdentityApplication.PhotoValid ( IPhoto  Photo,
object  Service 
)

An identity authenticator service validates a photo.

Parameters
PhotoPhoto validated.
ServiceService validating photo.

Implements Paiwise.IIdentityApplication.

Definition at line 218 of file IdentityApplication.cs.

◆ ReportError()

void Paiwise.IdentityApplication.ReportError ( string  Error,
string  ErrorLanguage,
string  ErrorCode,
ValidationErrorType  ErrorType,
object  Service,
params KeyValuePair< string, object >[]  Tags 
)

Reports an error encountered during validation.

Parameters
ErrorError message.
ErrorLanguageISO code of language of Error .
ErrorCodeA machine-readable code for the error.
ErrorTypeType of error.
ServiceService validating photo.
TagsTags associated with error.

Implements Paiwise.IIdentityApplication.

Definition at line 267 of file IdentityApplication.cs.

◆ TryGetValue< T >()

bool Paiwise.IdentityApplication.TryGetValue< T > ( string  Claim,
object  Value,
object  Service,
out T  TypedValue 
)

Tries to get a typed claim value from an untyped claim value.

Template Parameters
TExpected type.
Parameters
ClaimClaim identifier.
ValueUntyped value.
ServiceService requesting the value.
TypedValueTyped value, if successful.
Returns
If able to get the typed value.

Definition at line 947 of file IdentityApplication.cs.

◆ ValidateAllClaims()

void Paiwise.IdentityApplication.ValidateAllClaims ( )

Validates all claims.

Implements Paiwise.IIdentityApplication.

Definition at line 894 of file IdentityApplication.cs.

◆ ValidateAllPhotos()

void Paiwise.IdentityApplication.ValidateAllPhotos ( )

Validates all photos

Implements Paiwise.IIdentityApplication.

Definition at line 903 of file IdentityApplication.cs.

Property Documentation

◆ Account

IAccount Paiwise.IdentityApplication.Account
get

Account over which the application was made.

Implements Paiwise.IIdentityApplication.

Definition at line 137 of file IdentityApplication.cs.

◆ Claims

KeyValuePair<string, object> [] Paiwise.IdentityApplication.Claims
get

Full set of claims made regarding the identity, as meta-data tags.

Implements Paiwise.IIdentityApplication.

Definition at line 147 of file IdentityApplication.cs.

◆ Documents

IEnumerable<XmlDocument> Paiwise.IdentityApplication.Documents
get

Associated XML document attachments provided.

Implements Paiwise.IIdentityApplication.

Definition at line 162 of file IdentityApplication.cs.

◆ Errors

ValidationError [] Paiwise.IdentityApplication.Errors
get

Any errors reported during validation.

Implements Paiwise.IIdentityApplication.

Definition at line 395 of file IdentityApplication.cs.

◆ FirstError

IValidationError Paiwise.IdentityApplication.FirstError
get

First error encountered during validation.

Definition at line 673 of file IdentityApplication.cs.

◆ HasErrors

bool Paiwise.IdentityApplication.HasErrors
get

If errors are reported.

Implements Paiwise.IIdentityApplication.

Definition at line 409 of file IdentityApplication.cs.

◆ HasPotentialClaims

bool Paiwise.IdentityApplication.HasPotentialClaims
get

If the application has potential claims.

Definition at line 541 of file IdentityApplication.cs.

◆ HasServices

bool Paiwise.IdentityApplication.HasServices
get

If services have returned feedback on the application.

Implements Paiwise.IIdentityApplication.

Definition at line 451 of file IdentityApplication.cs.

◆ HasValidatedClaims

bool Paiwise.IdentityApplication.HasValidatedClaims
get

If the application has validated claims.

Implements Paiwise.IIdentityApplication.

Definition at line 513 of file IdentityApplication.cs.

◆ HasValidatedPhotos

bool Paiwise.IdentityApplication.HasValidatedPhotos
get

If the application has validated photos.

Implements Paiwise.IIdentityApplication.

Definition at line 527 of file IdentityApplication.cs.

◆ InvalidatedClaims

InvalidClaim [] Paiwise.IdentityApplication.InvalidatedClaims
get

Invalidated claims.

Implements Paiwise.IIdentityApplication.

Definition at line 299 of file IdentityApplication.cs.

◆ InvalidatedPhotos

InvalidPhoto [] Paiwise.IdentityApplication.InvalidatedPhotos
get

Invalidated photos.

Implements Paiwise.IIdentityApplication.

Definition at line 347 of file IdentityApplication.cs.

◆ IsValid

bool? Paiwise.IdentityApplication.IsValid
get

If the application has been validated (true), invalidated (false), or not yet validated (null).

Implements Paiwise.IIdentityApplication.

Definition at line 480 of file IdentityApplication.cs.

◆ NrErrors

int Paiwise.IdentityApplication.NrErrors
get

Number of errors reported.

Implements Paiwise.IIdentityApplication.

Definition at line 423 of file IdentityApplication.cs.

◆ NrPhotos

int Paiwise.IdentityApplication.NrPhotos
get

Number of photos provided.

Implements Paiwise.IIdentityApplication.

Definition at line 157 of file IdentityApplication.cs.

◆ NrServices

int Paiwise.IdentityApplication.NrServices
get

Number of services returning feedback on the the application.

Implements Paiwise.IIdentityApplication.

Definition at line 465 of file IdentityApplication.cs.

◆ PersonalInformation

PersonalInformation Paiwise.IdentityApplication.PersonalInformation
get

Personal information extracted from Claims.

Implements Paiwise.IIdentityApplication.

Definition at line 142 of file IdentityApplication.cs.

◆ Photos

IEnumerable<IPhoto> Paiwise.IdentityApplication.Photos
get

Photos provided.

Implements Paiwise.IIdentityApplication.

Definition at line 152 of file IdentityApplication.cs.

◆ PotentialClaims

PotentialClaim [] Paiwise.IdentityApplication.PotentialClaims
get

Potential claims

Definition at line 379 of file IdentityApplication.cs.

◆ Preview

bool Paiwise.IdentityApplication.Preview
get

If the application is a preview of an application. Previewed applications should not be persisted.

Implements Paiwise.IIdentityApplication.

Definition at line 132 of file IdentityApplication.cs.

◆ Services

object [] Paiwise.IdentityApplication.Services
get

Services involved in returning feedback on the application.

Implements Paiwise.IIdentityApplication.

Definition at line 437 of file IdentityApplication.cs.

◆ Tags

KeyValuePair<string, object> [] Paiwise.IdentityApplication.Tags
get

Tags annotating the application, as reported by the different services.

Implements Paiwise.IIdentityApplication.

Definition at line 555 of file IdentityApplication.cs.

◆ UnvalidatedClaims

string [] Paiwise.IdentityApplication.UnvalidatedClaims
get

Unvalidated claims.

Implements Paiwise.IIdentityApplication.

Definition at line 315 of file IdentityApplication.cs.

◆ UnvalidatedPhotos

IPhoto [] Paiwise.IdentityApplication.UnvalidatedPhotos
get

Unvalidated photos.

Implements Paiwise.IIdentityApplication.

Definition at line 363 of file IdentityApplication.cs.

◆ ValidatedClaims

ValidClaim [] Paiwise.IdentityApplication.ValidatedClaims
get

Validated claims.

Implements Paiwise.IIdentityApplication.

Definition at line 283 of file IdentityApplication.cs.

◆ ValidatedPhotos

ValidPhoto [] Paiwise.IdentityApplication.ValidatedPhotos
get

Validated photos.

Implements Paiwise.IIdentityApplication.

Definition at line 331 of file IdentityApplication.cs.


The documentation for this class was generated from the following file: