2 * Copyright 2011, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
17 status_t
GetKey(BKeyType type
, const char* identifier
,
19 status_t
GetKey(BKeyType type
, const char* identifier
,
20 const char* secondaryIdentifier
, BKey
& key
);
21 status_t
GetKey(BKeyType type
, const char* identifier
,
22 const char* secondaryIdentifier
,
23 bool secondaryIdentifierOptional
,
26 status_t
GetKey(const char* keyring
,
27 BKeyType type
, const char* identifier
,
29 status_t
GetKey(const char* keyring
,
30 BKeyType type
, const char* identifier
,
31 const char* secondaryIdentifier
, BKey
& key
);
32 status_t
GetKey(const char* keyring
,
33 BKeyType type
, const char* identifier
,
34 const char* secondaryIdentifier
,
35 bool secondaryIdentifierOptional
,
38 status_t
AddKey(const BKey
& key
);
39 status_t
AddKey(const char* keyring
, const BKey
& key
);
40 status_t
RemoveKey(const BKey
& key
);
41 status_t
RemoveKey(const char* keyring
, const BKey
& key
);
43 status_t
GetNextKey(uint32
& cookie
, BKey
& key
);
44 status_t
GetNextKey(BKeyType type
, BKeyPurpose purpose
,
45 uint32
& cookie
, BKey
& key
);
46 status_t
GetNextKey(const char* keyring
,
47 uint32
& cookie
, BKey
& key
);
48 status_t
GetNextKey(const char* keyring
,
49 BKeyType type
, BKeyPurpose purpose
,
50 uint32
& cookie
, BKey
& key
);
54 status_t
AddKeyring(const char* keyring
);
55 status_t
RemoveKeyring(const char* keyring
);
57 status_t
GetNextKeyring(uint32
& cookie
,
60 status_t
SetUnlockKey(const char* keyring
,
62 status_t
RemoveUnlockKey(const char* keyring
);
66 status_t
SetMasterUnlockKey(const BKey
& key
);
67 status_t
RemoveMasterUnlockKey();
69 status_t
AddKeyringToMaster(const char* keyring
);
70 status_t
RemoveKeyringFromMaster(const char* keyring
);
72 status_t
GetNextMasterKeyring(uint32
& cookie
,
77 bool IsKeyringUnlocked(const char* keyring
);
78 status_t
LockKeyring(const char* keyring
);
79 status_t
LockMasterKeyring();
83 status_t
GetNextApplication(uint32
& cookie
,
84 BString
& signature
) const;
85 status_t
GetNextApplication(const char* keyring
,
86 uint32
& cookie
, BString
& signature
) const;
87 status_t
RemoveApplication(const char* signature
);
88 status_t
RemoveApplication(const char* keyring
,
89 const char* signature
);
93 status_t
GeneratePassword(BPasswordKey
& password
,
94 size_t length
, uint32 flags
);
95 float PasswordStrength(const char* password
);
98 status_t
_SendKeyMessage(BMessage
& message
,
99 BMessage
* reply
) const;
103 #endif // _KEY_STORE_H