Location: Symbol Reference > Classes > TJwAuthContext Class > TJwAuthContext.CreateByToken Constructor
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwAuthContext.CreateByToken Constructor
Pascal
constructor CreateByToken(const ResourceManager: TJwAuthResourceManager; Flags: TAuthZSidContextFlags; const Token: TJwSecurityToken; const ExpirationTime: Int64; const DynamicGroupArgs: Pointer); overload;
Parameters 
Description 
const ResourceManager: TJwAuthResourceManager 
defines a resource manager instance. Must not be nil.  
Flags: TAuthZSidContextFlags 
not used.  
const Token: TJwSecurityToken 
A token that is used for initializing the context. The token must be opened with TOKEN_QUERY.  
const ExpirationTime: Int64 
not used  
const DynamicGroupArgs: Pointer 
is a used defined pointer that is passed to a call to TJwAuthResourceManager.OnAuthzComputeGroupsCallback 

CreateByToken creates an authentication context from a token. 

 

Exceptions 
Description 
will be raised if a call to AuthzInitializeContextFromToken failed. If GetLastError returns ERROR_INVALID_BLOCK, the reason is because a callback data block (TJwCallbackData) is invalid. This can only happen if someone changed the internal instance data.
 
will be raised if parameter ResourceManager or Sid is nil 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!