const SOPC_ByteString * SOPC_User_GetCertificate(const SOPC_User *user)
Returns a reference to the internal storage of the DER certificate. The user shall be a user with a c...
struct SOPC_User SOPC_User
Logged in (successfully) user structure.
Definition: sopc_user.h:40
bool SOPC_User_IsAnonymous(const SOPC_User *user)
Returns true if the user is an anonymous user.
bool SOPC_User_IsCertificate(const SOPC_User *user)
Returns true if the type of the user is certificate.
SOPC_User * SOPC_User_Copy(const SOPC_User *user)
Copy the given user.
This structure provides string encapsulation.
Definition: sopc_builtintypes.h:148
const char * SOPC_User_ToCString(const SOPC_User *user)
Returns the user as a const C string description:
const SOPC_User * SOPC_User_GetAnonymous(void)
Returns an anonymous user, which shall not be freed nor be modified.
SOPC_User * SOPC_User_CreateCertificate(SOPC_ByteString *certificateData)
Creates a SOPC_User which has a X509 certificate.
bool SOPC_User_IsUsername(const SOPC_User *user)
Returns true if the type of the user is username.
const SOPC_String * SOPC_User_GetCertificate_Thumbprint(const SOPC_User *user)
Returns a reference to the internal storage of the thumbprint certificate (SHA1 hexadecimal format)....
bool SOPC_User_IsLocal(const SOPC_User *user)
Returns true if the user is a local user.
SOPC_User * SOPC_User_CreateUsername(SOPC_String *username)
Creates a SOPC_User which has a usename.
bool SOPC_User_Equal(const SOPC_User *left, const SOPC_User *right)
Returns true if the users are the same type and content (if applicable)
const SOPC_User * SOPC_User_GetLocal(void)
Returns a local user, which shall not be freed nor be modified.
const SOPC_String * SOPC_User_GetUsername(const SOPC_User *user)
Returns a reference to the internal storage of the username. The user must be a user with a username.
void SOPC_User_Free(SOPC_User **ppUser)
User deletion, should not be called on local and anonymous users.