Location: Symbol Reference > Classes > TJwAuthContext Class > TJwAuthContext.CreateByContext Constructor
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwAuthContext.CreateByContext Constructor
Pascal
constructor CreateByContext(const AuthContext: TJwAuthContext; Flags: TAuthZSidContextFlags; const ExpirationTime: Int64; const DynamicGroupArgs: Pointer); overload;
Parameters 
Description 
Flags: TAuthZSidContextFlags 
not used.  
const ExpirationTime: Int64 
Time for which the access check must remain valid.  
const DynamicGroupArgs: Pointer 
is a used defined pointer that is passed to a call to TJwAuthResourceManager.OnAuthzComputeGroupsCallback 
Token 
A token that is used for initializing the context. The token must be opened with TOKEN_QUERY.  

CreateByContext creates an authentication context from a token. 

 

Exceptions 
Description 
will be raised if a call to AuthzInitializeContextFromAuthzContext 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!