Location: Symbol Reference > Classes > TJwComServerSecurity Class
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwComServerSecurity Class
Pascal
TJwComServerSecurity = class(TJwComCustomSecurity, IJwComServerSecurity);

The class TJwComServerSecurity provides functionality for a server to query client information, to impersonate and to do access checks.

TJwComServerSecurity Class
 
Name 
Description 
 
Creates a COM server instance. 
Name 
Description 
The following tables list the members exposed by IJwComServerSecurity. 
The methods of the IJwComServerSecurity class are listed here. 
The properties of the IJwComServerSecurity class are listed here. 
TJwComCustomSecurity Class
Name 
Description 
The following tables list the members exposed by TJwComCustomSecurity. 
The methods of the TJwComCustomSecurity class are listed here. 
The properties of the TJwComCustomSecurity class are listed here. 
TJwComServerSecurity Class
Name 
Description 
The following tables list the members exposed by TJwComServerSecurity. 
The methods of the TJwComServerSecurity class are listed here. 
The properties of the TJwComServerSecurity class are listed here. 
 
Name 
Description 
 
See TJwComServerSecurity.AccessCheck for more information. 
 
See TJwComServerSecurity.AccessCheckCached for more information. 
 
 
 
Removes the thread token. 
TJwComCustomSecurity Class
 
Name 
Description 
 
BeginUpdate is used to start a property update sequence. It must be called before any of the properties are called.
TJwComCustomSecurity 
 
The method CheckReadonly validates whether the ReadOnlyProperties flag is set to true and in case it raises an exception EJwsclReadOnlyPropertyException; otherwise it does nothing. 
 
The method CoInitializeSecurity wraps the COM API CoInitializeSecurity using converted parameters and exceptions. See the MSDN for more information.
 
 
EndUpdate is used to end a property update sequence. Prior to the this call BeginUpdate must be called.
 
TJwComServerSecurity Class
 
Name 
Description 
 
The method TJwComServerSecurity.AccessCheck checks whether the current client's identity.has access regarding the given security descriptor and desired access rights. 
 
The method TJwComServerSecurity.AccessCheckCached checks whether the current client's identity.has access regarding the given security descriptor and desired access rights. It uses and already calculated access check result created by a previously call to TJwComServerSecurity.AccessCheckCached. 
 
Impersonates the current thread and removes any previous thread token. 
 
Returns true if the current thread has a token assigned (is impersonating); otherwise false.
The function does not distuingish between a client token connected to the server and any other assigned token. 
 
Removes the thread token. 
 
Name 
Description 
 
For more information on the methods see the documentation of TJwComServerSecurity. 
 
For more information on the methods see the documentation of TJwComServerSecurity. 
 
For more information on the methods see the documentation of TJwComServerSecurity. 
 
For more information on the methods see the documentation of TJwComServerSecurity. 
 
For more information on the methods see the documentation of TJwComServerSecurity. 
 
For more information on the methods see the documentation of TJwComServerSecurity. 
 
For more information on the methods see the documentation of TJwComServerSecurity. 
 
For more information on the methods see the documentation of TJwComServerSecurity. 
 
For more information on the methods see the documentation of TJwComServerSecurity. 
TJwComCustomSecurity Class
 
Name 
Description 
 
MEMBERNAME% contains an information structure depending on the used authentication service (set by property AuthenticationService
 
The property AuthenticationLevel define when authentication is done. This value is from type TJwComAuthenticationLevel
 
The property AuthenticationService contains the authentication service. This is one of the enumerations listed in TJwComAuthenticationService
 
Defines the type of authorization that should be used. The type is TJwComAuthorizationService
 
Defines a set of TJwComAuthenticationCapability flags that are used in COM calls for various reasons. 
 
MEMBERNAME% is used in two ways:  
 
The property ReadOnlyProperties returns the readonly state of the properties. 
 
The property ServerPrincipalName defines the name defined in the first call to CoInitializeSecurity
TJwComServerSecurity Class
 
Name 
Description 
 
The authentication context used by AccessCheck. This value is nil if AccessCheck wasn't called yet.
On write the current instance of the authentication context is freed and the value is directly written to the internal instance variable. So do not free it yourself, the class instance will do it.
Do not free the instance and then call AccessCheckCached
 
The property AuthenticationInfo contains an information structure depending on the used authentication service (set by property AuthenticationService
 
The property AuthenticationLevel define when authentication is done. This value is from type TJwComAuthenticationLevel
 
The property AuthenticationService contains the authentication service. This is one of the enumerations listed in TJwComAuthenticationService
 
The authentication manager used by AccessCheck. This value is nil if AccessCheck wasn't called yet.
On write the current instance of the authentication manager is freed and the value is directly written to the internal instance variable. So do not free it yourself, the class instance will do it.
Do not free the instance and then call AccessCheckCached
 
Defines the type of authorization that should be used. The type is TJwComAuthorizationService
 
Defines the type of authorization that should be used. The type is TJwComAuthorizationService
 
MEMBERNAME% is used in two ways:  
 
Returns the client token.
This instance is cached by the class and must not be freed.
A first read call impersonates the user and removes a previously set thread token. Therefore all subsequent calls will run on the process token.
If ImpersonationLevel is cilAnonymous an exception EJwsclNoThreadTokenAvailable is raised. 
 
Returns the user's name connected to the server. Either it uses the current thread token or it impersonates the user if no thread token is available. If ImpersonationLevel is cilAnonymous the return value is an empty string. 
 
WinNTIdentity contains the user's identity if the property AuthenticationService is asWinNT or asGSSKerberos; otherwise it is nil.
This instance is cached by the class and must not be freed. 
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!