LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Security Class Reference

#include <Security.h>

Inheritance diagram for Security:
[legend]
Collaboration diagram for Security:
[legend]

Public Types

enum  FailureCode {
  Success = 0, FailureEmptyPasscode = -1, FailureMinLength = -2, FailureInvalidPassword = -3,
  FailureAlphaNumeric = -4, FailureInvalidPin = -5, FailureWeakPassword = -6, FailureSave = -7,
  FailureWeakPasswordRepeat = -8, FailureWeakPasswordSequence = -9
}
 

Public Member Functions

 ~Security ()
 
bool passcodeSet () const
 
std::string getLockMode () const
 
int setPasscode (const std::string &mode, const std::string &passcode, std::string &errorText)
 
bool matchPasscode (std::string passcode, int &retriesLeft, bool &lockedOut)
 
bool passcodeSatisfiesPolicy (const EASPolicy *const policy) const
 

Static Public Member Functions

static Securityinstance ()
 
static bool cbDeviceWipe (LSHandle *sh, LSMessage *message, void *data)
 

Member Enumeration Documentation

Enumerator
Success 
FailureEmptyPasscode 
FailureMinLength 
FailureInvalidPassword 
FailureAlphaNumeric 
FailureInvalidPin 
FailureWeakPassword 
FailureSave 
FailureWeakPasswordRepeat 
FailureWeakPasswordSequence 

Constructor & Destructor Documentation

Security::~Security ( )

Member Function Documentation

bool Security::cbDeviceWipe ( LSHandle *  sh,
LSMessage *  message,
void *  data 
)
static
std::string Security::getLockMode ( ) const
inline
Security * Security::instance ( void  )
static
bool Security::matchPasscode ( std::string  passcode,
int retriesLeft,
bool &  lockedOut 
)
bool Security::passcodeSatisfiesPolicy ( const EASPolicy *const  policy) const
bool Security::passcodeSet ( ) const
int Security::setPasscode ( const std::string &  mode,
const std::string &  passcode,
std::string &  errorText 
)

The documentation for this class was generated from the following files: