import { IUserIdentity } from '../../providers' ; import { DataUtility } from '../../utility' ; /**
 * UserIdentity principal context object
 */ export class UserIdentity extends IUserIdentity { private data = { } ; constructor ( ) { super ( ) ; } set ( key , val ) { this . data [ key ] = val ; } get ( key ) { return this . data [ key ] ; } contains ( key ) { return ! ( DataUtility . isUndefined ( this . data [ key ] ) && this . data . hasOwnProperty ( key ) === false ) ; } clear ( ) { this . data = { } ; } remove ( key ) { delete this . data [ key ] ; } }