13#include "kleo_export.h"
20class KLEO_EXPORT KeyUsage
30 Q_DECLARE_FLAGS(Flags, Flag)
36 explicit KeyUsage(Flags flags)
41 void setValue(Flags flags)
50 void setCanAuthenticate(
bool set)
52 mFlags.setFlag(Authenticate, set);
54 bool canAuthenticate()
const
56 return mFlags.testFlag(Authenticate);
59 void setCanCertify(
bool set)
61 mFlags.setFlag(Certify, set);
63 bool canCertify()
const
65 return mFlags.testFlag(Certify);
68 void setCanEncrypt(
bool set)
70 mFlags.setFlag(Encrypt, set);
72 bool canEncrypt()
const
74 return mFlags.testFlag(Encrypt);
77 void setCanSign(
bool set)
79 mFlags.setFlag(Sign, set);
83 return mFlags.testFlag(Sign);
90Q_DECLARE_OPERATORS_FOR_FLAGS(KeyUsage::Flags)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:14 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.