public virtual FullResponse JoinSps(ISafeguardSessionsConnection spsConnection, string certificateChain, string sppAddress) { if (_disposed) { throw new ObjectDisposedException("SafeguardConnection"); } var request = new JoinRequest { spp = sppAddress, spp_api_token = _authenticationMechanism.GetAccessToken().ToInsecureString(), spp_cert_chain = certificateChain }; var joinBody = JsonConvert.SerializeObject(request); Log.Debug("Sending join request."); var joinResponse = spsConnection.InvokeMethodFull(Method.Post, "cluster/spp", joinBody); joinResponse.LogResponseDetails(); return(joinResponse); }
public override FullResponse JoinSps(ISafeguardSessionsConnection spsConnection, string certificateChain, string sppAddress) { throw new SafeguardDotNetException("Management connection cannot be used to join SPS."); }