SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 402 | Next

Vittorio Bertocci, Garrett Serack, Caleb Baker

"Understanding Windows CardSpace: An Introduction to the Concepts and Challenges of Digital Identities"

createElement("object");
embed.setAttribute("type",
???"application/x-informationCard");
return (""+embed.issuerPolicy != "unde?¬?ned" &&
??? embed.isInstalled);
}
// not IE (any version)
if( IEVer < 0 && navigator.mimeTypes &&
??? navigator.mimeTypes.length) {
// check to see whether there is a
// mimeType handler.
x = navigator.mimeTypes[
???'application/xinformationCard'];
if (x && x.enabledPlugin)
return true;
// check for the IdentitySelector event handler
is there.
if(document.addEventListener) {
var event = document.createEvent("Events");
event.initEvent("IdentitySelectorAvailable",
??? true, true);
top.dispatchEvent(event);
if( top.IdentitySelectorAvailable == true)
return true;
}
}
return false;
}
The code performs a few checks to determine whether
Information Cards are supported. First, it checks whether the
browser is Internet Explorer. If it is, and at least version 7 (the
?¬?rst version to support CardSpace), it attempts to create and use
the CardSpace ActiveX object. On other browsers, it checks for
one of two possibilities: either a registered mimeType handler
that supports the application/x-informationCard type, or it
CardSpace is supported
on Internet
Explorer 7.


Pages:
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414