Also,
issuerEndpointAddress is set to the URL of the issuer
http://issuer/departmento?¬‚icensing, which will be used
by CardSpace to enable only the applicable cards.
Just to restate the obvious, GetToken() was not designed to be
called directly in an easy fashion, but in some cases it can be
rather useful.
Get a Browser Token from CardSpace
GetBrowserToken() is only available from native code. That??™s
because it was written speci?¬?cally to be called by browser extensions,
which are written in native code. This call is how
Internet Explorer calls into CardSpace, and should be used by
other browser extensions, too.
HRESULT
__stdcall GetBrowserToken(
__in DWORD dwParamType,
__in PVOID pParam,
__out_opt DWORD* pcbToken,
__out_bcount_opt(*pcbToken) PBYTE* ppToken );
The DWORD dwParamType speci?¬?es the type of struct type passed
into pParam. The only value supported for CardSpace v1 is
dwParamType=1; this means the pParam type will be of type
RecipientPolicy. This is also de?¬?ned in infocard.h.
Although the direct API calls into CardSpace are more burdensome,
it is nice to have them available to enable native and
client-only applications access to CardSpace.
Pages:
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398