Location: Symbol Reference > Classes > TJwSecurityDescriptor Class > TJwSecurityDescriptor Methods > TJwSecurityDescriptor.LoadFromStream Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityDescriptor.LoadFromStream Method
Pascal
procedure LoadFromStream(const Stream: TStream); virtual;

LoadFromStream loads a security descriptor from a stream. 

The stream position must be on the first value of the magic header. (see SaveToStream ). If the following values are true the hash value will be checked and an exception EJwsclStreamHashException will be raised if the read hash is not equal to the calculated one. Assigned(OnHashCodeMethod) and (ReadHash > 0) and (CalculatedHash > 0) and (iCHash <> iRHash) A hash comparison will only be done if the hashes are greater than zero. 

raises EJwsclStreamHashException will be raised if the hash ist not valid. raises EJwsclInvalidSecurityDescriptor will be raised if the security descriptor read from the stream is not valid (uses IsValidSecurityDescriptor) Currently only the version of SD is tested.

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!