QServiceClientCredentials Class

The QServiceClientCredentials class holds credentials for the service client. More...

Header: #include <QServiceClientCredentials>

Public Functions

qintptr getGroupIdentifier() const
qintptr getProcessIdentifier() const
qintptr getUserIdentifier() const
bool isClientAccepted() const
bool isValid() const
void setClientAccepted(bool isAccepted)

Detailed Description

This class is used when implementing service security. It allows the service to check the credentials of the client and then accept or reject the client.

Member Function Documentation

qintptr QServiceClientCredentials::getGroupIdentifier() const

Returns the group identifier for the client. On Unix systems this is the GID of the client process.

qintptr QServiceClientCredentials::getProcessIdentifier() const

Returns the process identifier for the client. On Unix systems this is the PID of the client process.

qintptr QServiceClientCredentials::getUserIdentifier() const

Returns the user identifier for the client. On Unix systems this is the UID of the client process.

bool QServiceClientCredentials::isClientAccepted() const

Returns true if the client has been accepted, false otherwise.

bool QServiceClientCredentials::isValid() const

Returns true if this object is valid.

void QServiceClientCredentials::setClientAccepted(bool isAccepted)

Called by the service to accept or reject the client. Set isAccepted to true to accept the client.

See also isClientAccepted().