TypeKeySecurity library documentation

TypeKeyIdentity Members

TypeKeyIdentity overview

Public Static Fields

COOKIE_EXPIRATION_DEFAULTDefault expiration time for the authentication cookie.
COOKIE_EXPIRATION_KEYThe cookie expiration may be configured in the web.config file using this key.
COOKIE_NAME_DEFAULTDefault name for the authentication cookie.
COOKIE_NAME_KEYThe cookie name may be configured in the web.config file using this key.
FOAF_LOCATION_DEFAULTDefault url for the TypeKey FOAF files.
FOAF_LOCATION_KEY
LOGIN_LOCATION_DEFAULTDefault url for the TypeKey login service.
LOGIN_LOCATION_KEYThe url of the TypeKey login service can be configured via the AppSettings in the web.config file using this key.
LOGOUT_LOCATION_DEFAULTDefault url for the TypeKey logout service.
LOGOUT_LOCATION_KEYThe url for the TypeKey logout service can be configured via the AppSettings in the web.config file using this key.
PUBKEY_LOCATION_DEFAULTDefault url for the TypeKey public DSA key.
PUBKEY_LOCATION_KEYThe location for fetching the public DSA key for the TypeKey service can be configured via the AppSettings in the web.config file using this key.
SITE_TOKEN_KEYThe site token has to be configured via the AppSettings in the web.config file using this key.

Public Static Methods

MakeLogoutCookieClear the authentication cookie.

Public Instance Properties

AuthenticationTypeGets the type of authentication used to identify the user.
EmailEmail address of the authenticated user.
FOAFUrlUrl for the FOAF file for the authenticated user.
IsAuthenticated Whether the user was authenticated. Caller should also use IsAuthFresh to verify freshness of the authentication.
NameLogin name of an authenticated user. Unique identifier.
NameHashMD5 hash of Name. Provides a numerical unique identifier (an 128 bit integer).
NickDisplay name of the authenticated user.
TimeStampTimestamp of the authentication.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetCleanUrlOverloaded. Get the current url, cleaned of any TypeKey specific parameters.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
IsAuthFreshWhether the authentication occured within the timewindow.
IsEmailHashedWhether the Email field is a SHA-1 hash or an actual email address.
LoginUrlOverloaded. Build a url to send the user to the Typekey server to get authenticated, with the return url set to the current page.
LoginUserOverloaded. Redirect the user to the Typekey server to get authenticated, with the return url set to the current page.
LogoutUrlOverloaded. Build a url to send the user to the TypeKey server to get logged out
LogoutUserOverloaded. Clear authentication cookies and redirect to TypeKey logout url.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

TypeKeyIdentity Class | TypeKeySecurity Namespace