PrincipalExtensions

Extensión for principal an identity.

Namespace:
Inetdev.Security
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
Yes
Inherits from:
System.Object

Methods

DisplayName

Returns the display name (given name) of the authenticated identity or the identity name;

Signature:
public String DisplayName(identity)
Parameters
Name Type Summary
identity IIdentity

DisplayName

Returns the display name (given name) of the authenticated princial or the identity name;

Signature:
public String DisplayName(principal)
Parameters
Name Type Summary
principal IPrincipal

Email

Returns the email of the authenticated identity or null if it has no email.

Signature:
public String Email(identity)
Parameters
Name Type Summary
identity IIdentity

Email

Returns the email of the authenticated principal or null if it has no email.

Signature:
public String Email(principal)
Parameters
Name Type Summary
principal IPrincipal

EmailVerified

Returns if the email of the authenticated identity has been verified.

Signature:
public Boolean EmailVerified(identity)
Parameters
Name Type Summary
identity IIdentity

EmailVerified

Returns if the email of the authenticated principal has been verified.

Signature:
public Boolean EmailVerified(principal)
Parameters
Name Type Summary
principal IPrincipal

PhoneNumber

Returns the phone number of the authenticated identity or null if it has no phone number.

Signature:
public String PhoneNumber(identity)
Parameters
Name Type Summary
identity IIdentity

PhoneNumber

Returns the phone number of the authenticated principal or null if it has no phone number.

Signature:
public String PhoneNumber(principal)
Parameters
Name Type Summary
principal IPrincipal

PhoneNumberVerified

Returns if the phone number of the authenticated identity has been verified.

Signature:
public Boolean PhoneNumberVerified(identity)
Parameters
Name Type Summary
identity IIdentity

PhoneNumberVerified

Returns if the phone number of the authenticated principal has been verified.

Signature:
public Boolean PhoneNumberVerified(principal)
Parameters
Name Type Summary
principal IPrincipal

SubjectId

Returns the Subject Id of the authenticated identity.

Signature:
public String SubjectId(identity)
Parameters
Name Type Summary
identity IIdentity

SubjectId

Returns the Subject Id of the authenticated principal.

Signature:
public String SubjectId(principal)
Parameters
Name Type Summary
principal IPrincipal