Home | History | Annotate | Download | only in server

Lines Matching defs:Pkcs11KeyStore

93 Pkcs11KeyStore::Pkcs11KeyStore(chaps::TokenManagerClient* token_manager)
96 Pkcs11KeyStore::~Pkcs11KeyStore() {}
98 bool Pkcs11KeyStore::Read(const std::string& username,
103 LOG(ERROR) << "Pkcs11KeyStore: No token for user.";
108 LOG(ERROR) << "Pkcs11KeyStore: Failed to open token session.";
113 LOG(WARNING) << "Pkcs11KeyStore: Key does not exist: " << key_name;
121 LOG(ERROR) << "Pkcs11KeyStore: Failed to read key data: " << key_name;
129 LOG(ERROR) << "Pkcs11KeyStore: Failed to read key data: " << key_name;
136 bool Pkcs11KeyStore::Write(const std::string& username,
145 LOG(ERROR) << "Pkcs11KeyStore: No token for user.";
150 LOG(ERROR) << "Pkcs11KeyStore: Failed to open token session.";
186 LOG(ERROR) << "Pkcs11KeyStore: Failed to write key data: " << key_name;
192 bool Pkcs11KeyStore::Delete(const std::string& username,
196 LOG(ERROR) << "Pkcs11KeyStore: No token for user.";
201 LOG(ERROR) << "Pkcs11KeyStore: Failed to open token session.";
207 LOG(ERROR) << "Pkcs11KeyStore: Failed to delete key data.";
214 bool Pkcs11KeyStore::DeleteByPrefix(const std::string& username,
218 LOG(ERROR) << "Pkcs11KeyStore: No token for user.";
223 LOG(ERROR) << "Pkcs11KeyStore: Failed to open token session.";
227 &Pkcs11KeyStore::DeleteIfMatchesPrefix,
232 LOG(ERROR) << "Pkcs11KeyStore: Failed to delete key data.";
238 bool Pkcs11KeyStore::Register(const std::string& username,
248 LOG(ERROR) << "Pkcs11KeyStore: Only RSA supported.";
253 LOG(ERROR) << "Pkcs11KeyStore: No token for user.";
258 LOG(ERROR) << "Pkcs11KeyStore: Failed to open token session.";
269 LOG(ERROR) << "Pkcs11KeyStore: Failed to decode public key.";
276 LOG(ERROR) << "Pkcs11KeyStore: Failed to extract public key modulus.";
313 LOG(ERROR) << "Pkcs11KeyStore: Failed to create public key object.";
347 LOG(ERROR) << "Pkcs11KeyStore: Failed to create private key object.";
356 LOG(WARNING) << "Pkcs11KeyStore: Failed to find certificate fields.";
387 LOG(ERROR) << "Pkcs11KeyStore: Failed to create certificate object.";
399 bool Pkcs11KeyStore::RegisterCertificate(const std::string& username,
403 LOG(ERROR) << "Pkcs11KeyStore: No token for user.";
408 LOG(ERROR) << "Pkcs11KeyStore: Failed to open token session.";
413 LOG(INFO) << "Pkcs11KeyStore: Certificate already exists.";
420 LOG(WARNING) << "Pkcs11KeyStore: Failed to find certificate fields.";
447 LOG(ERROR) << "Pkcs11KeyStore: Failed to create certificate object.";
453 CK_OBJECT_HANDLE Pkcs11KeyStore::FindObject(CK_SESSION_HANDLE session_handle,
492 bool Pkcs11KeyStore::GetUserSlot(const std::string& username,
532 bool Pkcs11KeyStore::EnumObjects(
534 const Pkcs11KeyStore::EnumObjectsCallback& callback) {
582 bool Pkcs11KeyStore::GetKeyName(CK_SESSION_HANDLE session_handle,
601 bool Pkcs11KeyStore::DeleteIfMatchesPrefix(CK_SESSION_HANDLE session_handle,
614 bool Pkcs11KeyStore::GetCertificateFields(const std::string& certificate,
622 LOG(WARNING) << "Pkcs11KeyStore: Failed to decode certificate.";
629 LOG(WARNING) << "Pkcs11KeyStore: Failed to encode certificate subject.";
638 LOG(WARNING) << "Pkcs11KeyStore: Failed to encode certificate issuer.";
648 LOG(WARNING) << "Pkcs11KeyStore: Failed to encode certificate serial "
656 bool Pkcs11KeyStore::DoesCertificateExist(