@@ -645,25 +645,6 @@ public function bulkDeleteTokens($unlockuuid, $tokens, $requestMetadata = null)
645645 return $ this ->makeRequest ('BulkDeleteTokens ' , $ data , $ requestMetadata );
646646 }
647647
648- // System Configuration
649- public function getUIConf () {
650- return $ this ->makeRequest ('TenantGetUIConf ' );
651- }
652-
653- public function getTenantConf () {
654- return $ this ->makeRequest ('TenantGetUIConf ' );
655- }
656-
657- public function getUserHTMLReport ($ mode , $ identity , $ requestMetadata = null ) {
658- $ data = ['mode ' => $ mode , 'identity ' => $ identity ];
659- return $ this ->makeRequest ('SystemGetUserHTMLReport ' , $ data , $ requestMetadata );
660- }
661-
662- public function getUserReport ($ mode , $ identity , $ requestMetadata = null ) {
663- $ data = ['mode ' => $ mode , 'identity ' => $ identity ];
664- return $ this ->makeRequest ('SystemGetUserReport ' , $ data , $ requestMetadata );
665- }
666-
667648 // Session Management
668649 public function upsertSession ($ sessionuuid , $ sessiondata , $ options = [], $ requestMetadata = null ) {
669650 $ data = array_merge (['sessionuuid ' => $ sessionuuid , 'sessiondata ' => $ sessiondata ], $ options );
@@ -685,10 +666,48 @@ public function getSession($sessionuuid, $requestMetadata = null) {
685666 return $ this ->makeRequest ('SessionGet ' , $ data , $ requestMetadata );
686667 }
687668
669+ // System Configuration
670+ public function getUIConf () {
671+ return $ this ->makeRequest ('TenantGetUIConf ' );
672+ }
673+
674+ public function getTenantConf () {
675+ return $ this ->makeRequest ('TenantGetUIConf ' );
676+ }
677+
678+ public function getUserHTMLReport ($ mode , $ identity , $ requestMetadata = null ) {
679+ $ data = ['mode ' => $ mode , 'identity ' => $ identity ];
680+ return $ this ->makeRequest ('SystemGetUserHTMLReport ' , $ data , $ requestMetadata );
681+ }
682+
683+ public function getUserReport ($ mode , $ identity , $ requestMetadata = null ) {
684+ $ data = ['mode ' => $ mode , 'identity ' => $ identity ];
685+ return $ this ->makeRequest ('SystemGetUserReport ' , $ data , $ requestMetadata );
686+ }
687+
688688 public function getSystemStats ($ requestMetadata = null ) {
689689 return $ this ->makeRequest ('SystemGetSystemStats ' , null , $ requestMetadata );
690690 }
691691
692+ /**
693+ * Generates a new wrapping key from three Shamir's Secret Sharing keys
694+ * @param string $key1 - First Shamir secret sharing key
695+ * @param string $key2 - Second Shamir secret sharing key
696+ * @param string $key3 - Third Shamir secret sharing key
697+ * @param array|null $requestMetadata - Additional metadata to include with the request
698+ * @return array The generated wrapping key
699+ *
700+ * Response format:
701+ * {
702+ * "status": "ok",
703+ * "wrappingkey": "generated-wrapping-key-value"
704+ * }
705+ */
706+ public function generateWrappingKey ($ key1 , $ key2 , $ key3 , $ requestMetadata = null ) {
707+ $ data = ['key1 ' => $ key1 , 'key2 ' => $ key2 , 'key3 ' => $ key3 ];
708+ return $ this ->makeRequest ('SystemGenerateWrappingKey ' , $ data , $ requestMetadata );
709+ }
710+
692711 public function parsePrometheusMetrics ($ metricsText ) {
693712 $ lines = explode ("\n" , $ metricsText );
694713 $ metrics = [];
@@ -741,7 +760,6 @@ public function createSharedRecord($mode, $identity, $options = [], $requestMeta
741760 'mode ' => $ mode ,
742761 'identity ' => $ identity
743762 ];
744-
745763 if (isset ($ options ['fields ' ])) {
746764 $ data ['fields ' ] = $ options ['fields ' ];
747765 }
0 commit comments