NAP
Public Member Functions | List of all members
PublicKey Class Referenceabstract

#include <publickey.h>

Public Member Functions

virtual ~PublicKey ()
 
virtual std::string getKey () const =0
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual bool init (utility::ErrorState &errorState)
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Description

Public RSA Key. Used by the nap::LicenseService to validate a license.
Override the getKey() method in a derived class to embed the key in your application. Key must be created using the 'keygen' tool.

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

Constructor & Destructor Documentation

◆ ~PublicKey()

virtual ~PublicKey ( )
virtual

Member Function Documentation

◆ getKey()

virtual std::string getKey ( ) const
pure virtual

Needs to be implemented in derived classes. Returns a public RSA key, generated using the 'keygen' tool.

Returns
a public RSA key.