Skip to content

OcaSecurityManager#

This document describes the device side implementation of OcaSecurityManager. This class is documented in the AES70 standard as:

Manager that collects and controls security settings (including security keys). Must be instantiated in every device that supports secure control and monitoring; otherwise, is optional., May be instantiated at most once in any device., If instantiated, object number must be 2.


Overview#

Class Declaration#

The device side implementation has the following signature.

namespace aes70::device
{
  template <class Implementation>
  class OcaSecurityManager : public OcaManager<Implementation>
  {

  };
}

The template argument Implementation may implement the following methods.

Note

The signatures given here are just one possibility and that most methods are optional. Implement only those methods which make sense in the context of your device. See the documentation in Implementing AES70 Classes for more details.

class MyOcaSecurityManagerImplementation
{
  // Methods defined by OcaSecurityManager
  void EnableControlSecurity();
  void DisableControlSecurity();
  void ChangePreSharedKey(OcaString identity, OcaBlob newKey);
  void AddPreSharedKey(OcaString identity, OcaBlob key);
  void DeletePreSharedKey(OcaString identity);

  // Methods defined by OcaRoot
  OcaBoolean GetLockable();
  void SetLockNoReadWrite();
  void Unlock();
  OcaString GetRole();
  void SetLockNoWrite();
  OcaLockState GetLockState();

};

Events#